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

Disassembly:
push 0xffffffffffffffff
push 0x6040bc
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0xe4]
mov eax, dword [esp + 0xe8]
mov ebp, dword [esp + 0xec]
mov dword [esp + 0xb0], 7
mov dword [esp + 0x98], 0x4ca644
xor ecx, ecx
mov dword [esp + 0xdc], 0
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], cx
test ebp, ebp
je 0x5076c9
push eax
lea ecx, [esp + 0x9c]
call fcn.00542740
mov eax, edi
shr eax, 0x1f
test al, 1
jne 0x5078d6
push 0x44
lea eax, [esp + 0x58]
push 0
push eax
call fcn.005e0f30
xor eax, eax
mov dword [esp + 0x60], 0x4caaac
add esp, 0xc
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov dword [esp + 0x60], 0x4ca644
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], eax
mov word [esp + 0x80], ax
mov dword [esp + 0x7c], 0x4ca644
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x40]
mov edx, eax
mov byte [esp + 0xdc], 1
mov dword [esp + 0x58], edi
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x507764
mov edi, edi
cmp dword [ecx + 0x14], edi
jae 0x50775a
mov ecx, dword [ecx + 8]
jmp 0x50775e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x507750
cmp edx, eax
je 0x507777
cmp edi, dword [edx + 0x14]
jb 0x507777
mov dword [esp + 0x14], edx
lea esi, [esp + 0x14]
jmp 0x50777f
mov dword [esp + 0x18], eax
lea esi, [esp + 0x18]
mov esi, dword [esi]
cmp esi, eax
je 0x507977
mov edi, dword [esi + 0x18]
cmp edi, dword [esi + 0x14]
je 0x507977
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb8]
call fcn.005423d0
cmp dword [esp + 0xb0], 8
lea eax, [esp + 0x9c]
mov dword [esp + 0xac], 0
cmovae eax, dword [esp + 0x9c]
xor ecx, ecx
mov byte [esp + 0xdc], 2
mov word [eax], cx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x3c]
call fcn.005424f0
push 0x4caab0
lea ecx, [esp + 0x20]
mov byte [esp + 0xe0], 3
call fcn.00542560
lea eax, [esi + 0x1c]
mov byte [esp + 0xdc], 4
test eax, eax
je 0x507813
add eax, 4
jmp 0x507815
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa8]
call fcn.005082b0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa8]
call fcn.005082b0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xa8]
call fcn.005082b0
cmp dword [esp + 0x34], 8
mov dword [esp + 0x1c], 0x4ca644
jb 0x50786b
push dword [esp + 0x20]
call fcn.005df995
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x38], 0x4ca644
jb 0x50789d
push dword [esp + 0x3c]
call fcn.005df995
add esp, 4
cmp dword [esp + 0xcc], 0x10
mov dword [esp + 0xb4], 0x4ca328
jb 0x5078c1
push dword [esp + 0xb8]
call fcn.005df995
add esp, 4
mov eax, edi
mov byte [esp + 0xdc], 0
shr eax, 0x1f
test al, 1
je 0x5076d6
test edi, edi
jns 0x507980
push 0x44
lea eax, [esp + 0x58]
push 0
push eax
call fcn.005e0f30
xor eax, eax
mov dword [esp + 0x60], 0x4caaac
add esp, 0xc
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov dword [esp + 0x60], 0x4ca644
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], eax
mov word [esp + 0x80], ax
mov dword [esp + 0x7c], 0x4ca644
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x60]
lea eax, [esp + 0x98]
mov byte [esp + 0xdc], 5
push eax
mov dword [esp + 0x60], edi
call fcn.005426e0
test ebp, ebp
je 0x50796a
push ebp
lea ecx, [esp + 0x80]
call fcn.00542740
lea eax, [esp + 0x54]
push eax
lea ecx, [ebx + 0x30]
call fcn.005083c0
lea ecx, [esp + 0x54]
call fcn.00505c90
cmp dword [esp + 0xb0], 8
mov dword [esp + 0x98], 0x4ca644
jb 0x5079a4
push dword [esp + 0x9c]
call fcn.005df995
add esp, 4
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.005e0482
add esp, 0xcc
ret 0xc