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

Disassembly:
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x48]
mov ebx, ecx
push edi
sar ebx, 8
mov edx, dword [esi + 0x78]
mov edi, edx
mov eax, dword [esi + 0x54]
sar edi, 8
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], ebx
cmp edi, eax
jl 0x100321b7
cmp ebx, eax
jl 0x100321b7
mov eax, dword [esp + 0x14]
pop edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ecx
pop esi
pop ebx
add esp, 0x3c
ret 4
mov eax, dword [esi + 0x50]
cmp edi, eax
jge 0x100321c2
cmp ebx, eax
jl 0x100321a4
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x14]
sar ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, al
mov dword [esp + 0x18], esi
sub dword [esp + 0x18], eax
mov esi, dword [esp + 0x40]
push ebp
mov ebp, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x40]
sub eax, edx
movzx ecx, dl
mov edx, dword [esp + 0x38]
sar ebp, 8
mov dword [esp + 0x50], ecx
mov dword [esp + 0x20], eax
cmp ebp, edx
jne 0x1003220e
cmp edi, ebx
je 0x100325ed
test eax, eax
jne 0x1003229b
cmp dword [esi + 0x60], eax
jne 0x10032230
cmp dword [esi + 0x58], eax
jne 0x10032225
cmp dword [esi + 0x5c], eax
je 0x10032230
mov ecx, esi
call fcn.100320f0
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x48]
mov eax, edx
dec ecx
mov dword [esi + 0x58], 0
cmp edx, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], ebx
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp ebx, dword [esi + 0x54]
jge 0x1003227b
cmp ebx, dword [esi + 0x50]
jl 0x1003227b
cmp edx, dword [esi + 0x4c]
jge 0x1003227b
xor eax, eax
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x18]
pop ebp
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebx
add esp, 0x3c
ret 4
mov eax, 1
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x18]
pop ebp
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebx
add esp, 0x3c
ret 4
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x100323cc
mov edx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
test eax, eax
jle 0x10032350
nop dword [eax + eax]
sub edx, dword [esp + 0x50]
mov eax, pe_nt_image_headers32
sub eax, dword [esp + 0x50]
add edx, 0x100
imul eax, dword [esp + 0x10]
inc edi
mov dword [esi + 0x5c], edx
mov dword [esp + 0x50], 0
lea eax, [ebx + eax*2]
mov dword [esi + 0x58], eax
test ecx, ecx
jne 0x100322fd
test eax, eax
jne 0x100322f6
test edx, edx
je 0x100322fd
mov ecx, esi
call fcn.100320f0
mov ecx, dword [esi + 0x48]
mov eax, ebp
dec ecx
mov dword [esi + 0x58], 0
cmp ebp, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], edi
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp edi, dword [esi + 0x54]
jge 0x1003232f
cmp edi, dword [esi + 0x50]
jl 0x1003232f
cmp ebp, dword [esi + 0x4c]
jge 0x1003232f
xor ecx, ecx
jmp 0x10032334
mov ecx, 1
xor edx, edx
mov dword [esi + 0x60], ecx
xor ebx, ebx
cmp edi, dword [esp + 0x28]
jne 0x100322c0
jmp 0x100325ed
mov eax, dword [esp + 0x10]
dec edi
imul eax, dword [esp + 0x50]
sub edx, dword [esp + 0x50]
mov dword [esi + 0x5c], edx
mov dword [esp + 0x50], pe_nt_image_headers32
add eax, eax
sub ebx, eax
mov dword [esi + 0x58], ebx
test ecx, ecx
jne 0x10032383
test ebx, ebx
jne 0x1003237c
test edx, edx
je 0x10032383
mov ecx, esi
call fcn.100320f0
mov ecx, dword [esi + 0x48]
mov eax, ebp
dec ecx
mov dword [esi + 0x58], 0
cmp ebp, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], edi
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp edi, dword [esi + 0x54]
jge 0x100323b5
cmp edi, dword [esi + 0x50]
jl 0x100323b5
cmp ebp, dword [esi + 0x4c]
jge 0x100323b5
xor ecx, ecx
jmp 0x100323ba
mov ecx, 1
xor edx, edx
mov dword [esi + 0x60], ecx
xor ebx, ebx
cmp edi, dword [esp + 0x28]
jne 0x10032350
jmp 0x100325ed
imul eax, dword [esp + 0x10]
imul ebx, ecx
sub ebx, eax
cmp ebp, edx
je 0x100323ea
mov eax, 0xffffff
cdq
idiv dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x100323f2
mov dword [esp + 0x2c], 0
cmp edi, dword [esp + 0x28]
je 0x10032408
mov eax, 0xffffff
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x30], eax
jmp 0x10032410
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
shl eax, 8
mov dword [esp + 0x34], eax
jmp 0x10032432
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x34]
test ebx, ebx
jg 0x10032484
mov eax, ebx
sub eax, ecx
test eax, eax
jle 0x10032484
mov ecx, dword [esp + 0x2c]
dec ebp
sub edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
imul ecx, ebx
neg eax
mov dword [esp + 0x14], edx
shl eax, 8
add ebx, eax
shr ecx, 0x18
mov edx, ecx
sub edx, dword [esp + 0x50]
imul edx, dword [esp + 0x10]
add dword [esp + 0x14], ecx
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp + 0x50], ecx
jmp 0x10032567
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
shl ecx, 8
mov dword [esp + 0x14], eax
test eax, eax
jg 0x100324e4
lea eax, [ecx + ebx]
test eax, eax
jle 0x100324e4
mov ebx, dword [esp + 0x14]
inc edi
mov eax, dword [esp + 0x30]
sub edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
add edx, 0x100
imul eax, ebx
mov dword [esp + 0x14], edx
mov edx, pe_nt_image_headers32
sub edx, dword [esp + 0x48]
mov dword [esp + 0x50], 0
neg eax
shr eax, 0x18
add ecx, eax
mov dword [esp + 0x10], eax
imul edx, ecx
jmp 0x10032567
lea eax, [ecx + ebx]
test eax, eax
jg 0x10032533
mov eax, dword [esp + 0x20]
shl eax, 8
add eax, ebx
js 0x10032533
mov ecx, dword [esp + 0x2c]
mov ebx, eax
sub edx, dword [esp + 0x50]
inc ebp
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
add eax, 0x100
imul ecx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
shr ecx, 0x18
add dword [esp + 0x14], ecx
mov edx, ecx
sub edx, dword [esp + 0x50]
mov dword [esp + 0x50], ecx
imul edx, eax
jmp 0x10032567
mov ecx, dword [esp + 0x30]
dec edi
sub edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
imul ecx, ebx
add ebx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], pe_nt_image_headers32
neg ecx
shr ecx, 0x18
add eax, ecx
mov dword [esp + 0x10], ecx
imul edx, eax
neg edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add eax, edx
cmp dword [esp + 0x24], 0
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], eax
jne 0x1003258d
test eax, eax
jne 0x10032586
test ecx, ecx
je 0x1003258d
mov ecx, esi
call fcn.100320f0
mov ecx, dword [esi + 0x48]
mov eax, ebp
dec ecx
mov dword [esi + 0x58], 0
cmp ebp, ecx
mov dword [esi + 0x5c], 0
mov dword [esi + 0x44], edi
cmovle eax, ecx
mov dword [esi + 0x40], eax
cmp edi, dword [esi + 0x54]
jge 0x100325bf
cmp edi, dword [esi + 0x50]
jl 0x100325bf
cmp ebp, dword [esi + 0x4c]
jge 0x100325bf
xor eax, eax
jmp 0x100325c4
mov eax, 1
xor edx, edx
mov dword [esp + 0x24], eax
mov dword [esi + 0x60], eax
mov dword [esp + 0x3c], edx
cmp ebp, dword [esp + 0x38]
jne 0x1003242e
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x28]
jne 0x1003242e
mov ebx, dword [esp + 0x40]
movzx ecx, bl
mov eax, ecx
mov dword [esi + 0x78], ebx
sub eax, dword [esp + 0x50]
add dword [esi + 0x5c], eax
mov eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x50]
movzx eax, al
add eax, dword [esp + 0x10]
imul eax, ecx
pop ebp
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x74], eax
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 4