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

Disassembly:
sub esp, 0x24
mov edx, dword [esp + 0x2c]
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 0x54]
push edi
mov edi, dword [esi + 0x78]
mov ebx, edi
mov eax, edx
sar ebx, 8
sar eax, 8
cmp ebx, ecx
mov dword [esp + 0x14], eax
jl 0x1005733c
cmp eax, ecx
jge 0x100575ee
mov ecx, dword [esi + 0x50]
cmp ebx, ecx
jge 0x1005734b
cmp eax, ecx
jl 0x100575ff
mov edx, dword [esi + 0x74]
mov eax, dword [esp + 0x34]
mov ecx, edx
sar ecx, 8
mov dword [esp + 0xc], ecx
shl ecx, 8
push ebp
mov ebp, edx
sub ebp, ecx
mov ecx, ebx
shl ecx, 8
sub edi, ecx
mov ecx, dword [esp + 0x38]
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esi + 0x78]
sar eax, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x10], eax
jne 0x10057396
cmp ebx, dword [esp + 0x18]
je 0x100575b5
test ecx, ecx
jne 0x100573a8
call fcn.100572b0
mov eax, dword [esp + 0x24]
jmp 0x100575b5
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x1005741b
test ecx, ecx
jle 0x100573f0
mov eax, 0x100
sub eax, edi
imul eax, ebp
add eax, eax
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x10]
mov edx, 0x100
sub edx, edi
add dword [esi + 0x5c], edx
inc ebx
xor edi, edi
call fcn.100572b0
cmp ebx, dword [esp + 0x18]
jne 0x100573b4
mov eax, dword [esp + 0x24]
jmp 0x100575b5
sub dword [esi + 0x5c], edi
imul edi, ebp
mov eax, dword [esp + 0x10]
neg edi
add edi, edi
add dword [esi + 0x58], edi
dec ebx
mov edi, 0x100
call fcn.100572b0
cmp ebx, dword [esp + 0x18]
jne 0x100573f0
mov eax, dword [esp + 0x24]
jmp 0x100575b5
imul edx, edi
imul ecx, ebp
sub edx, ecx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x10], eax
je 0x10057441
mov eax, 0xffffff
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
jmp 0x10057449
mov dword [esp + 0x28], 0
cmp ebx, dword [esp + 0x18]
je 0x1005746e
mov eax, 0xffffff
cdq
idiv dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
shl ecx, 8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x1005748b
mov ecx, dword [esp + 0x1c]
shl ecx, 8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ecx
jmp 0x1005748b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
test edx, edx
jg 0x100574d1
mov eax, edx
sub eax, ecx
test eax, eax
jle 0x100574d1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
imul eax, edx
neg ecx
shl ecx, 8
add edx, ecx
shr eax, 0x18
mov ecx, eax
sub ecx, edi
imul ecx, ebp
add dword [esi + 0x58], ecx
mov dword [esp + 0x14], edx
mov edx, eax
sub edx, edi
add dword [esi + 0x5c], edx
dec dword [esp + 0x10]
mov ebp, 0x100
mov edi, eax
jmp 0x10057594
mov eax, edx
sub eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
jg 0x10057521
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
shl eax, 8
add eax, edx
test eax, eax
jle 0x10057521
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
imul eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, 0x100
sub ecx, edi
add dword [esi + 0x5c], ecx
neg eax
shr eax, 0x18
mov ecx, 0x100
sub ecx, edi
lea edx, [eax + ebp]
imul edx, ecx
add dword [esi + 0x58], edx
xor edi, edi
inc ebx
jmp 0x10057592
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
shl eax, 8
add eax, edx
test eax, eax
jg 0x1005756c
mov ecx, dword [esp + 0x20]
shl ecx, 8
add ecx, edx
js 0x1005756c
mov eax, dword [esp + 0x28]
imul eax, ecx
shr eax, 0x18
mov dword [esp + 0x14], ecx
mov ecx, eax
sub ecx, edi
add ebp, 0x100
imul ecx, ebp
add dword [esi + 0x58], ecx
mov edx, eax
sub edx, edi
add dword [esi + 0x5c], edx
xor ebp, ebp
inc dword [esp + 0x10]
mov edi, eax
jmp 0x10057594
mov eax, dword [esp + 0x2c]
imul eax, edx
add edx, dword [esp + 0x30]
sub dword [esi + 0x5c], edi
neg eax
shr eax, 0x18
mov dword [esp + 0x14], edx
lea edx, [eax + ebp]
imul edx, edi
sub dword [esi + 0x58], edx
mov edi, 0x100
dec ebx
mov ebp, eax
mov eax, dword [esp + 0x10]
call fcn.100572b0
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], eax
jne 0x10057483
cmp ebx, dword [esp + 0x18]
jne 0x10057483
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
shl ecx, 8
mov ebx, ecx
shl eax, 8
sub ebp, eax
mov eax, dword [esp + 0x38]
mov ecx, edx
sub ecx, ebx
mov ebx, ecx
add ebp, eax
sub ecx, edi
imul ebp, ecx
sub ebx, edi
add dword [esi + 0x5c], ebx
add dword [esi + 0x58], ebp
pop ebp
pop edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edx
pop esi
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x34]
pop edi
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x34]
pop edi
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edx
pop esi
pop ebx
add esp, 0x24
ret