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

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
mov ebp, dword [esi + 4]
push edi
mov edi, dword [esi + 8]
xor ebx, ebx
cmp ebp, 0x3c0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], ebx
jg 0x5b2679
cmp edi, 0x2a8
jle 0x5b2723
fild dword [esp + 0x14]
add ebp, 0xfffffc40
mov dword [esp + 0x14], ebp
add edi, 0xfffffd58
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edi
fld dword [esp + 0x30]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x50]
fild dword [esp + 0x2c]
fstp dword [esp + 0x30]
fild dword [esp + 0x14]
fld dword [esp + 0x30]
fld st(0)
fdivp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x50]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x5b26d6
fstp st(0)
jmp 0x5b26d8
fstp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld1
fsubrp st(1)
fmul st(2), st(0)
fld qword [0x638508]
fadd st(3), st(0)
fxch st(3)
call fcn.005e7a30
fmulp st(1)
mov ebp, eax
faddp st(1)
call fcn.005e7a30
cmp ebp, ebx
mov dword [esp + 0x2c], eax
je 0x5b271d
push eax
push ebp
push esi
call fcn.005b5db0
mov edi, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x5b2723
mov dword [esp + 0x3c], ebx
mov edi, eax
mov esi, edi
imul esi, ebp
lea eax, [esi*4]
push eax
mov dword [esp + 0x58], esi
call fcn.005e693a
mov ecx, dword [esp + 0x40]
add esp, 4
cmp ecx, ebx
push eax
mov dword [esp + 0x18], eax
lea eax, [esi*4]
push eax
jne 0x5b275a
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax]
push ecx
call dword [0x61009c]
cmp edi, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
jle 0x5b287c
mov ecx, dword [esp + 0x14]
fld qword [0x6384e0]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], edi
cmp ebp, ebx
jle 0x5b285e
mov esi, 3
lea edi, [esi - 2]
mov edx, ebp
movzx eax, byte [esi + ecx]
mov dword [esp + 0x18], eax
movzx eax, byte [ecx]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
add ecx, 4
fdiv st(1)
fild dword [esp + 0x18]
fnstcw word [esp + 0x18]
fmul st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], eax
movzx eax, byte [edi + ecx - 4]
fldcw word [esp + 0x18]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fnstcw word [esp + 0x18]
fmul st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x34], eax
mov eax, 2
fldcw word [esp + 0x18]
movzx eax, byte [eax + ecx - 4]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fnstcw word [esp + 0x18]
fmulp st(1)
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x38], eax
sub edx, edi
fldcw word [esp + 0x18]
jne 0x5b2799
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov ecx, dword [esp + 0x50]
lea eax, [ebp*4]
add ecx, eax
sub dword [esp + 0x30], 1
mov dword [esp + 0x50], ecx
jne 0x5b2787
fstp st(0)
mov eax, dword [esp + 0x1c]
xor edx, edx
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x34]
div esi
xor edx, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
div esi
xor edx, edx
mov dh, cl
mov dl, byte [esp + 0x34]
shl edx, 8
movzx esi, al
mov dword [esp + 0x38], eax
add eax, 0xff00
shl eax, 8
add eax, dword [esp + 0x34]
or edx, esi
shl eax, 8
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0xc4]
push edx
mov dword [ecx], eax
call fcn.005e6a6c
add esp, 4
push ebx
call dword [0x6100f8]
push 0x2c
mov esi, eax
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.005e6f30
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x90]
push ecx
push ebx
lea edx, [esp + 0x9c]
push edx
push ebx
mov dword [esp + 0xa4], 0x28
mov dword [esp + 0xa8], 0x3c0
mov dword [esp + 0xac], 0x2a8
mov word [esp + 0xb0], 1
mov word [esp + 0xb2], 0x20
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xa0], ebx
call dword [0x6100f4]
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [0x6100ec]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push eax
call dword [0x6100a0]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x3c0
mov dword [esp + 0x70], 0x2a8
call dword [0x6108a4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], ebx
cmp eax, ebx
push ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
push 0xff
je 0x5b2a1a
mov edx, dword [esp + 0xc8]
movzx ecx, byte [edx + 0xc]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x98], edi
push eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], ebp
lea eax, [esp + 0x80]
lea edi, [esp + 0x58]
jmp 0x5b2a5a
mov eax, dword [esp + 0xc8]
movzx edx, byte [eax + 0xc]
mov eax, dword [eax]
push edx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x88], edi
push eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x88], ebp
lea eax, [esp + 0x90]
lea edi, [esp + 0x70]
push esi
call fcn.005b4fd0
mov edi, dword [esp + 0x38]
add esp, 0x1c
cmp ebp, 0x3c0
jge 0x5b2aa3
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [ebp - 0x50]
lea eax, [edi - 0x1000000]
push eax
mov dword [esp + 0x48], ecx
lea ecx, [edi + 0x1000000]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
call fcn.005b2b50
add esp, 0x14
mov eax, dword [esp + 0x2c]
cmp eax, 0x2a8
jge 0x5b2adf
push 1
lea edx, [edi - 0x1000000]
push edx
lea ecx, [eax - 0x50]
mov dword [esp + 0x54], eax
add edi, 0x1000000
push edi
lea eax, [esp + 0x4c]
push eax
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebp
call fcn.005b2b50
add esp, 0x14
mov ecx, dword [esp + 0x54]
mov edi, dword [0x6100e8]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [0x6100ec]
push esi
call dword [0x6100f0]
mov eax, dword [esp + 0x3c]
push eax
call edi
push 0x10
call fcn.005e694e
add esp, 4
cmp eax, ebx
je 0x5b2b21
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xc], bl
jmp 0x5b2b23
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov byte [eax + 0xc], bl
mov dword [eax], ecx
mov dword [eax + 4], 0x3c0
mov dword [eax + 8], 0x2a8
pop ebx
add esp, 0xac
ret