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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp ebx, eax
push edi
jle 0x60b086
mov ebx, eax
test ebx, ebx
jge 0x60b08c
xor ebx, ebx
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd0]
sub ebx, eax
jne 0x60b0d2
mov eax, dword [esp + 0x60]
test eax, eax
je 0x60b0c6
or ecx, 0xffffffff
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18
test ebx, ebx
jge 0x60b0e0
mov ecx, ebx
neg ecx
mov dword [esp + 0x14], ecx
jmp 0x60b0e4
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x50]
fild dword [esp + 0x5c]
xor edx, edx
test ebx, ebx
setg dl
fstp dword [esp + 0x58]
fild dword [esp + 0x14]
mov ebx, dword [esp + 0x5c]
fdiv dword [esp + 0x58]
lea edx, [edx + edx - 1]
mov dword [esp + 0x28], edx
cdq
idiv dword [esi + 0x5c]
fstp dword [esp + 0x20]
mov edx, eax
mov eax, ebx
neg eax
mov ecx, eax
add edx, 1
cmp ecx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jg 0x60b241
jmp 0x60b140
mov eax, dword [esp + 0x1c]
jmp 0x60b140
cmp eax, ebx
mov dword [esp + 0x10], eax
jg 0x60b232
add ebp, ecx
add edi, eax
test ebp, ebp
jl 0x60b218
cmp ebp, edx
jge 0x60b218
test edi, edi
jl 0x60b218
cmp edi, edx
jge 0x60b218
imul eax, eax
mov edx, ecx
imul edx, ecx
add edx, eax
mov dword [esp + 0x5c], eax
mov eax, ebx
imul eax, ebx
cmp edx, eax
jg 0x60b210
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd0]
fild dword [esp + 0x14]
mov ecx, eax
fld st(0)
fmulp st(1)
fiadd dword [esp + 0x5c]
fsqrt
fcom dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x60b1c0
fstp st(0)
fld dword [esp + 0x58]
fld dword [esp + 0x58]
push 0
fnstcw word [esp + 0x60]
push 0
movzx eax, word [esp + 0x64]
fsub st(1)
or ah, 0xc
fmul dword [esp + 0x28]
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x30]
fstp st(0)
fldcw word [esp + 0x64]
add eax, ecx
push eax
sub esp, 8
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd4]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add eax, 1
add edi, 1
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x60b150
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
add ecx, 1
cmp ecx, ebx
mov dword [esp + 0x14], ecx
jle 0x60b133
mov edx, dword [esi + 0x78]
mov eax, edi
sub eax, ebx
add edi, ebx
mov ecx, ebp
sub ecx, ebx
cmp eax, edx
lea ebx, [ebx + ebp + 1]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ebx
jge 0x60b26a
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 0x7c]
cmp ecx, eax
jge 0x60b275
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x80]
cmp edi, eax
jle 0x60b283
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x84]
cmp ebx, eax
jle 0x60b291
mov dword [esp + 0x48], eax
mov eax, dword [esi]
or ecx, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
xor ebx, ebx
push edx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [eax + 0xa8]
mov edi, dword [esp + 0x64]
cmp edi, ebx
mov ebp, dword [esp + 0x60]
jne 0x60b2ce
test ebp, ebp
je 0x60b388
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ebx, 1
sub edx, 1
add ecx, 1
add eax, 1
test edi, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
je 0x60b331
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
test ebp, ebp
je 0x60b388
mov edi, dword [esi + 0x78]
sub ebx, 1
sub edx, 1
add ecx, 1
add eax, 1
cmp ebx, edi
jge 0x60b34a
mov ebx, edi
mov edi, dword [esi + 0x7c]
cmp edx, edi
jge 0x60b353
mov edx, edi
mov edi, dword [esi + 0x80]
cmp ecx, edi
jle 0x60b35f
mov ecx, edi
mov edi, dword [esi + 0x84]
cmp eax, edi
jle 0x60b36b
mov eax, edi
mov esi, dword [esi + 0x5c]
mov edi, esi
imul edx, esi
imul ecx, esi
imul edi, ebx
imul eax, esi
mov dword [ebp], edi
mov dword [ebp + 4], edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret 0x18