Function at 0x507068
Capabilities:
Resolve function by parsing pe exports

Disassembly:
invalid
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ca630
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5dd040]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebx, dword [ebp + 8]
mov ecx, ebx
push eax
call 0x4bdab5
test al, al
je 0x508038
jmp 0x507ff2
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0x40115c
mov dword [ecx], eax
mov esi, dword [esi + 0xc]
test esi, esi
je 0x5080e0
jmp 0x508064
mov eax, dword [ebx + 0x48]
mov eax, dword [esi + eax]
test eax, eax
je 0x507108
cmp dword [eax + 4], 0
jne 0x508e81
push eax
push ebx
mov ecx, edi
call fcn.00506f26
mov ecx, dword [esp + 0x10]
add esi, 4
mov eax, dword [ebx + 0x48]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [eax + 8]
jl 0x5070f4
jmp 0x508235
jmp dword [ecx*4 + 0x44e850]
mov edx, dword [eax]
mov ecx, eax
push 9
push esi
call dword [edx + 0x90]
jmp 0x5081f5
mov ecx, dword [edi + 4]
push ebx
call 0x4d460c
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x50821a
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x50816e
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x507ffd
xor ecx, ecx
jmp 0x50800a
cmp dword [eax + 4], 0
jne 0x508e81
mov ecx, dword [eax + 0x20]
cmp dword [ebx + 0x78], 0
jne 0x508038
mov eax, dword [ecx + 0x78]
mov dword [ebx + 0x78], eax
mov eax, dword [ecx + 0x84]
shr eax, 0xf
and al, 1
movzx eax, al
shl eax, 0xf
xor eax, dword [ebx + 0x84]
and eax, 0x8000
xor dword [ebx + 0x84], eax
mov eax, dword [ebx]
and eax, 0xfffffeff
or eax, 0x200
cmp dword [ebx + 0x14], 0
mov dword [ebx], eax
jne 0x508053
mov dword [ebx + 0x14], 0
mov esi, dword [ebx + 0x18]
mov byte [ebx + 0x80], 9
test esi, esi
je 0x5080e0
lea esp, [esp]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esp + 0x14], 0x40115c
lea ecx, [eax + 0x628]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [ecx], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0x403798
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], 1
mov eax, dword [esi]
and eax, 0xff
lea ecx, [eax - 7]
cmp ecx, 5
jbe switch.0x0050712a
jmp 0x5070ca
cmp byte [ebx + 0x81], 4
jne 0x507fd2
mov eax, dword [ebx + 0x80]
shr eax, 0x16
test al, 1
jne 0x507fd2
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov edi, dword [eax + 8]
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0x34], 0
mov dword [esp + 0x14], eax
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
jne 0x508e6e
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x50814e
cmp byte [ecx], 3
jne 0x50814e
call 0x4bd171
jmp 0x508150
xor eax, eax
push dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x58]
push eax
push ebx
call 0x595f47
mov dword [ebx + 0x34], eax
jmp 0x508e6e
mov edi, dword [esp + 0x10]
jmp 0x507fd2
mov dword [esp + 0x14], 0x40115c
lea ecx, [eax + 0x628]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [ecx], eax
mov dword [esp + 0x30], 3
mov dword [esp + 0x14], 0x403798
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], 4
cmp byte [esi], 3
jne 0x5081f5
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
push dword [eax + 0x54]
call dword [0x5e2478]
cmp eax, 1
jne 0x5081d9
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x54]
movzx eax, word [eax]
sub eax, 0x30
cmp eax, 4
mov eax, 0x546a2a
je 0x5081de
mov eax, 0x401b88
call eax
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp byte [esi], 3
je 0x507fc0
jmp 0x508e81
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0x40115c
mov dword [ecx], eax
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x507fe6
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x10], 0
cmp dword [eax + 8], 0
jle 0x508235
mov esi, 0xc
jmp 0x5070f4
push ebx
mov ecx, edi
call 0x613194
jmp 0x50825e
mov byte [ebx + 0x80], 0xa
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebx + 0x34]
lea ecx, [esp + 0x1c]
call fcn.00508f0a
jmp 0x508165
call 0x5eb876
int3