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

Disassembly:
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x80]
cmp dword [ebx + 8], 0
push ebp
push esi
mov esi, eax
jle 0x433488
cmp dword [ebx + 0xc], 0
jle 0x433488
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov eax, 0x55555556
imul ebp
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x55555556
imul ebx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x3c], ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
lea eax, [ecx + ecx]
sub ebp, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x3c]
lea edx, [ebx + ebx]
sub ebp, edx
xor dl, dl
cmp dword [edi + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
jge 0x432b13
mov eax, dword [edi + 8]
cdq
sub eax, edx
sar eax, 1
test byte [edi + 8], 1
mov dword [esp + 0x18], eax
je 0x432b11
inc eax
mov dword [esp + 0x18], eax
mov dl, 1
lea eax, [ebx + ebx]
cmp dword [edi + 0xc], eax
jge 0x432b33
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
test byte [edi + 0xc], 1
mov dword [esp + 0x10], eax
je 0x432b3b
inc dword [esp + 0x10]
jmp 0x432b3b
test dl, dl
je 0x433043
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x60], ecx
push eax
lea eax, [esp + 0x58]
mov ecx, esi
mov dword [esp + 0x54], ebx
call fcn.00431d10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
sub ecx, eax
add ecx, dword [edi]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x8c]
push ecx
mov dword [esp + 0x50], eax
push edx
lea eax, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x64], ebx
call fcn.00431d10
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [ecx + ebp]
mov ecx, dword [edi]
mov dword [esp + 0x50], eax
lea eax, [edx + ebx]
mov edx, dword [edi + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
sub edx, eax
add edx, dword [edi + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x4c], ecx
push eax
lea eax, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x64], ebx
call fcn.00431d10
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 8]
sub edx, ecx
add edx, dword [edi]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [edi + 4]
sub edx, eax
add edx, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x50]
push eax
push ecx
lea eax, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], edx
call fcn.00431d10
push esi
call fcn.00430aa0
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [edi + 8]
lea ecx, [eax + eax]
sub edx, ecx
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push ecx
add edx, eax
push edx
call fcn.00432930
mov eax, dword [edi + 8]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov dword [esp + 0x28], 0
test eax, eax
jle 0x432dd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xc]
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x3c], 0
jmp 0x432d20
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi]
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
add ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x8c]
push eax
mov dword [esp + 0x54], edx
mov edx, dword [edi + 4]
push ecx
lea eax, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x4c], edx
call fcn.00431d10
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
mov edx, dword [edi]
add edx, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 4]
sub eax, dword [esp + 0x10]
add edx, dword [esp + 0x18]
add eax, dword [edi + 0xc]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x8c]
push ecx
mov dword [esp + 0x78], eax
push edx
lea eax, [esp + 0x78]
mov ecx, esi
mov dword [esp + 0x74], ebx
call fcn.00431d10
mov eax, dword [edi + 8]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
inc dword [esp + 0x28]
add dword [esp + 0x3c], ecx
cmp dword [esp + 0x28], eax
jl 0x432d20
mov ebx, esi
call fcn.00430bb0
push esi
call fcn.00430aa0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0xc]
lea eax, [ecx + ecx]
sub edx, eax
mov eax, dword [edi + 8]
push edx
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
add edx, ecx
push edx
push eax
call fcn.00432930
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xc]
add eax, eax
sub ecx, eax
mov dword [esp + 0x34], eax
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
xor ebx, ebx
mov dword [esp + 0x2c], ebx
test eax, eax
jle 0x432f04
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x70], edx
mov edx, dword [edi]
add eax, ebx
add eax, dword [esp + 0x10]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x8c]
push ecx
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x68]
mov ecx, esi
mov dword [esp + 0x84], ebp
call fcn.00431d10
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 8]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
add eax, dword [edi]
mov ecx, dword [edi + 4]
add ecx, ebx
add ecx, dword [esp + 0x10]
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x48], ecx
push eax
lea eax, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x64], ebp
call fcn.00431d10
mov edx, dword [edi + 0xc]
sub edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
lea eax, [edx + ebp - 1]
cdq
idiv ebp
inc ecx
add ebx, ebp
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x432e4b
mov ebx, esi
call fcn.00430bb0
push esi
call fcn.00430aa0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
add eax, eax
sub ecx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [edi + 4]
add ecx, dword [esp + 0x14]
lea ebx, [eax + eax]
sub edx, ebx
push edx
mov edx, dword [edi]
push ecx
add edx, eax
push edx
call fcn.00432930
mov eax, dword [edi + 8]
sub eax, ebx
mov ebx, dword [esp + 0x14]
lea eax, [eax + ebx - 1]
cdq
idiv ebx
mov dword [esp + 0x28], 0
test eax, eax
jle 0x433481
mov ecx, dword [edi + 0xc]
sub ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
mov ecx, eax
mov dword [esp + 0x2c], 0
test ecx, ecx
jle 0x43300f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, edx
mov edx, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
xor ebx, ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi]
add ecx, dword [esp + 0x3c]
add eax, ebx
add eax, dword [esp + 0x10]
add ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x90]
push ecx
push edx
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebp
call fcn.00431840
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
add eax, eax
sub ecx, eax
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
inc dword [esp + 0x2c]
add ebx, ebp
mov ecx, eax
cmp dword [esp + 0x2c], ecx
jl 0x432fa6
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 8]
add eax, eax
sub edx, eax
lea eax, [edx + ebx - 1]
cdq
idiv ebx
inc dword [esp + 0x28]
add dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], eax
jl 0x432f78
mov ebx, esi
call fcn.00430bb0
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x90]
push ecx
push edx
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebx
call fcn.00431840
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx]
mov eax, dword [esp + 0xc]
lea ecx, [edx + eax]
mov edx, dword [edi + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 8]
sub ecx, eax
add ecx, dword [edi]
push edx
mov edx, dword [esp + 0x90]
push ecx
mov dword [esp + 0x80], eax
push edx
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebx
call fcn.00431840
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea edx, [ecx + ebp]
mov ecx, dword [edi + 4]
mov dword [esp + 0x70], eax
lea eax, [edx + ebx]
mov edx, dword [edi]
sub ecx, ebx
add ecx, dword [edi + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
push ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x90]
push edx
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebx
call fcn.00431840
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x74], edx
mov edx, dword [edi + 8]
sub ecx, ebx
add ecx, dword [edi + 0xc]
sub edx, eax
add edx, dword [edi]
push ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x90]
push edx
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebx
call fcn.00431840
push esi
call fcn.00430aa0
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
add ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00432930
mov edx, dword [edi + 8]
sub edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea eax, [edx + ecx - 1]
cdq
idiv ecx
mov dword [esp + 0x18], 0
test eax, eax
jle 0x433244
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
add eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
mov ecx, dword [edi]
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 4]
add ecx, dword [esp + 0xc]
push eax
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x90]
push ecx
push edx
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebx
call fcn.00431840
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [edi]
add ecx, dword [esp + 0x3c]
sub eax, ebx
add eax, dword [edi + 0xc]
add ecx, dword [esp + 0xc]
push eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x90]
push ecx
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ebx
call fcn.00431840
mov eax, dword [edi + 8]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
inc dword [esp + 0x18]
add dword [esp + 0x3c], ecx
cmp dword [esp + 0x18], eax
jl 0x4331a4
mov ebx, esi
call fcn.00430bb0
push esi
call fcn.00430aa0
mov ebx, dword [esp + 0x24]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
add eax, dword [esp + 0x24]
add ebx, ebx
sub ecx, ebx
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
mov dword [esp + 0x44], ebx
call fcn.00432930
mov edx, dword [edi + 0xc]
sub edx, ebx
lea eax, [edx + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x10], 0
test eax, eax
jle 0x43333e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x28], eax
xor ebx, ebx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], edx
mov edx, dword [edi + 4]
add edx, ebx
add edx, dword [esp + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [edi]
push edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x90]
push eax
push ecx
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebp
call fcn.00431840
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 4]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xc]
add ecx, ebx
add ecx, dword [esp + 0x24]
sub edx, eax
add edx, dword [edi]
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x90]
push edx
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], ebp
call fcn.00431840
mov edx, dword [edi + 0xc]
sub edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
lea eax, [edx + ebp - 1]
cdq
idiv ebp
inc ecx
add ebx, ebp
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4332a1
mov ebx, esi
call fcn.00430bb0
push esi
call fcn.00430aa0
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xc]
mov ebx, dword [esp + 0xc]
mov edx, dword [edi + 8]
add eax, eax
sub ecx, eax
push ecx
mov ecx, dword [edi]
add ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
add eax, dword [esp + 0x28]
add ebx, ebx
sub edx, ebx
push edx
push eax
push ecx
call fcn.00432930
mov edx, dword [edi + 8]
sub edx, ebx
mov ebx, dword [esp + 0x14]
lea eax, [edx + ebx - 1]
cdq
idiv ebx
mov dword [esp + 0x18], 0
test eax, eax
jle 0x433481
mov eax, dword [edi + 0xc]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x3c], 0
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov ecx, eax
jmp 0x4333c4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test ecx, ecx
jle 0x43345b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x28], eax
xor ebx, ebx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x74], eax
mov eax, dword [edi]
add eax, dword [esp + 0x3c]
add edx, ebx
add edx, dword [esp + 0x24]
add eax, dword [esp + 0xc]
push edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x90]
push eax
push ecx
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], ebp
call fcn.00431840
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0xc]
add eax, eax
sub edx, eax
lea eax, [edx + ebp - 1]
cdq
idiv ebp
inc dword [esp + 0x10]
add ebx, ebp
mov ecx, eax
cmp dword [esp + 0x10], ecx
jl 0x4333f2
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [edi + 8]
add eax, eax
sub edx, eax
lea eax, [edx + ebx - 1]
cdq
idiv dword [esp + 0x14]
inc dword [esp + 0x18]
add dword [esp + 0x3c], ebx
cmp dword [esp + 0x18], eax
jl 0x4333c0
mov ebx, esi
call fcn.00430bb0
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8