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

Disassembly:
push 0xffffffffffffffff
push 0x432730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov edx, dword [eax]
mov esi, ecx
mov ecx, dword [esp + 0x68]
cmp edx, 1
push edi
mov ebp, dword [ecx]
mov dword [esp + 0x10], ebp
jne 0x407b78
mov eax, dword [esi + 0x30]
mov edx, ebp
sar edx, 0x10
and ebp, 0xffff
mov edx, dword [eax + edx*4]
shl ebp, 5
mov eax, dword [edx + ebp]
mov edx, dword [esp + 0x74]
mov dword [edx], eax
mov eax, dword [ecx]
mov edi, dword [esi + 0x30]
mov edx, eax
sar edx, 0x10
and eax, 0xffff
mov edx, dword [edi + edx*4]
shl eax, 5
mov eax, dword [edx + eax + 4]
mov edx, dword [esp + 0x78]
mov dword [edx], eax
mov eax, dword [ecx]
push eax
mov ecx, esi
call fcn.004075f0
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.004077f0
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x68]
xor ebx, ebx
test ebp, ebp
je 0x407b9f
mov edx, dword [esi + 0x30]
mov ecx, ebp
mov ebx, ebp
sar ecx, 0x10
and ebx, 0xffff
mov eax, dword [edx + ecx*4]
shl ebx, 5
add eax, ebx
mov ebx, dword [eax + 4]
jmp 0x407bc4
test edi, edi
je 0x407bc6
mov ecx, dword [esi + 0x30]
mov eax, edi
mov edx, edi
sar eax, 0x10
and edx, 0xffff
mov eax, dword [ecx + eax*4]
shl edx, 5
add eax, edx
mov ebx, dword [eax + 8]
and ebx, 0x2fffff
add ebx, dword [eax]
mov eax, dword [esi + 0x28]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push esi
call fcn.00401be0
lea ecx, [esp + 0x44]
call fcn.00403070
mov ecx, dword [0x43ee7c]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x74]
xor ecx, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [edx]
mov eax, ebx
cmp ebx, ecx
mov dword [esp + 0x44], eax
jge 0x407c28
mov ebx, eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00404940
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
add esp, 8
cmp eax, dword [edx]
jl 0x407c04
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov ecx, eax
sub ecx, ebx
mov dword [esp + 0x24], ecx
jne 0x407c46
xor ebx, ebx
test ebp, ebp
je 0x407c46
mov dword [esp + 0x68], 1
mov ecx, dword [0x43ee7c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x64], 1
mov edx, dword [ecx]
mov ecx, esi
push edx
push eax
call fcn.004064f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 0
call fcn.00425dde
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
neg ecx
push ecx
push ebp
push edi
mov ecx, esi
call fcn.004078c0
mov edx, dword [esp + 0x70]
cmp dword [edx], 0x80
jne 0x407d7f
mov eax, dword [esi + 0x30]
mov ebp, edi
sar ebp, 0x10
shl ebp, 2
and edi, 0xffff
lea edx, [eax + ebp]
shl edi, 5
mov eax, dword [edx]
mov ecx, edi
add ecx, eax
mov dword [esp + 0x20], edi
mov eax, dword [ecx + 8]
and eax, 0x2fffff
add eax, dword [ecx]
mov dword [esp + 0x44], eax
mov ecx, dword [edx]
lea edx, [edi + ecx]
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 8]
mov edi, ecx
and ecx, 0x2fffff
sar edi, 0x16
mov dword [esp + 0x18], edi
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x18]
sub edi, edx
sub edi, ecx
mov ecx, dword [esp + 0x1c]
add edi, eax
mov edx, dword [ecx + 0x14]
cmp eax, edi
mov dword [esp + 0x18], edx
jge 0x407d65
lea eax, [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00404940
add esp, 8
test eax, eax
jle 0x407d5f
cmp dword [esp + 0x28], 1
jne 0x407d55
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x30]
mov edx, ecx
and ecx, 0xffff
sar edx, 0x10
shl ecx, 5
lea eax, [eax + edx*4]
mov edx, ecx
mov dword [esp + 0x1c], eax
add edx, dword [eax]
mov eax, dword [edx + 4]
add eax, dword [edx]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov edx, dword [edx]
mov ecx, dword [ecx + edx + 0x18]
mov dword [esp + 0x18], ecx
jmp 0x407d59
mov eax, dword [esp + 0x44]
cmp eax, edi
jl 0x407cff
jmp 0x407d63
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x407d7b
mov edx, dword [esi + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + ebp]
lea eax, [eax + ecx + 0xc]
and dword [eax], 0xffdfffff
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], 0xffffffff
mov dword [eax], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov dword [ecx], ebp
lea ecx, [esp + 0x38]
call fcn.00425dde
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x14