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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x3c]
mov ebp, edi
sar ebp, 8
mov edx, dword [esi + 0x78]
mov ebx, edx
mov eax, dword [esi + 0x54]
sar ebx, 8
mov dword [esp + 0x1c], ebp
cmp ebx, eax
jl 0x1033759f
cmp ebp, eax
jge 0x1033782f
mov eax, dword [esi + 0x50]
cmp ebx, eax
jge 0x103375ae
cmp ebp, eax
jl 0x1033782f
mov eax, ebx
mov ecx, edx
shl eax, 8
sub ecx, eax
mov eax, ebp
shl eax, 8
sub edi, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
cmp ebx, ebp
jne 0x103375d8
push edi
push dword [esp + 0x3c]
push ecx
push dword [esi + 0x74]
jmp 0x10337825
mov edi, dword [esi + 0x74]
mov eax, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x3c]
sub edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
test eax, eax
jne 0x10337718
mov ecx, dword [esp + 0x34]
mov edx, ecx
sar edx, 8
mov eax, edx
mov dword [esp + 0x10], edx
shl eax, 8
sub ecx, eax
xor eax, eax
add ecx, ecx
test edi, edi
mov dword [esp + 0x34], ecx
setg al
xor ecx, ecx
test edi, edi
mov edi, dword [esp + 0x34]
lea eax, [eax*2 - 1]
mov dword [esp + 0x14], eax
mov eax, 0x100
cmovle eax, ecx
add ebx, dword [esp + 0x14]
mov ecx, eax
mov dword [esp + 0x18], eax
sub ecx, dword [esp + 0x24]
add dword [esi + 0x5c], ecx
mov eax, ecx
imul eax, edi
push ebx
push edx
push esi
add dword [esi + 0x58], eax
call fcn.10337350
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edx, [eax*2 - 0x100]
mov eax, edx
mov dword [esp + 0x24], edx
imul eax, edi
mov dword [esp + 0x20], eax
cmp ebx, ebp
je 0x103376e8
mov ecx, dword [esp + 0x10]
nop dword [eax + eax]
add dword [esi + 0x58], eax
mov edi, ecx
add dword [esi + 0x5c], edx
add ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x48]
cmp ecx, eax
jge 0x10337696
lea edi, [eax - 1]
cmp dword [esi + 0x60], 0
jne 0x103376ad
push esi
call fcn.103372d0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x24]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
cmp ebx, dword [esi + 0x54]
jge 0x103376d4
cmp ebx, dword [esi + 0x50]
jl 0x103376d4
cmp edi, dword [esi + 0x4c]
jge 0x103376d4
xor eax, eax
jmp 0x103376d9
mov eax, 1
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x20]
cmp ebx, ebp
jne 0x10337680
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, 0xffffff00
add ecx, eax
mov eax, ecx
imul eax, edi
pop edi
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x34]
add dword [esi + 0x5c], ecx
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x78], eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
jle 0x10337735
mov edx, 0x100
mov dword [esp + 0x10], 0x100
mov dword [esp + 0x14], 1
sub edx, ecx
jmp 0x1033774d
neg edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
mov edx, ecx
mov dword [esp + 0x20], edi
imul eax, edx
cdq
idiv edi
mov ebp, edx
test ebp, ebp
jns 0x1033775c
dec eax
add ebp, edi
push dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add eax, edx
push eax
push ecx
push edx
push ebx
push esi
mov dword [esp + 0x4c], eax
call fcn.103373b0
add ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
push ebx
sar eax, 8
push eax
push esi
call fcn.10337350
add esp, 0x24
cmp ebx, dword [esp + 0x1c]
je 0x1033780e
mov eax, dword [esp + 0x18]
shl eax, 8
cdq
idiv edi
mov ecx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
test ecx, ecx
jns 0x103377b3
dec eax
add ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x10]
mov ecx, 0x100
sub ecx, edx
mov dword [esp + 0x2c], ecx
add ebp, dword [esp + 0x18]
mov ecx, eax
cmp ebp, edi
jl 0x103377d1
sub ebp, edi
lea ecx, [eax + 1]
mov eax, dword [esp + 0x34]
push edx
lea edi, [eax + ecx]
push edi
push dword [esp + 0x34]
push eax
push ebx
push esi
call fcn.103373b0
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x4c], edi
push ebx
sar edi, 8
push edi
push esi
call fcn.10337350
mov edi, dword [esp + 0x44]
add esp, 0x24
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x1c]
jne 0x103377c2
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x3c]
mov eax, 0x100
sub eax, dword [esp + 0x18]
push eax
push dword [esp + 0x40]
push ebx
push esi
call fcn.103373b0
add esp, 0x18
mov eax, dword [esp + 0x38]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x78], eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret