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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
jne 0x5fb7d4
push 0x6c1268
lea ecx, [esp + 0x88]
call fcn.00643d2c
mov ebp, dword [esp + 0x78]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x88]
mov edx, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call dword [fcn.0065e0bc]
lea ecx, [esp + 0x84]
call fcn.00643d26
mov ecx, dword [esi + 0x3d6]
xor eax, eax
test ecx, ecx
jle 0x5fb718
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x7c]
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xea]
fild dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x78], eax
fmul qword [esi + 0xfe]
fild dword [esp + 0x78]
faddp st(1)
call fcn.00645030
mov edi, eax
mov eax, dword [esi + 0x2a6]
test eax, eax
je 0x5fb5f3
test ebx, ebx
je 0x5fb57b
mov ecx, dword [esi + 0x264]
mov edx, dword [ebx + ecx + 4]
lea eax, [ebx + ecx]
mov ecx, dword [ebx + ecx - 0x1e]
cmp edx, ecx
je 0x5fb5f3
mov eax, dword [esi + 0x264]
mov edx, dword [0x6a2d04]
mov ecx, dword [ebx + eax + 4]
lea eax, [ebx + eax + 4]
cmp ecx, edx
je 0x5fb5c9
mov edx, ecx
push edx
call fcn.00473400
add esp, 4
mov ecx, dword [esp + 0x80]
mov edx, edi
push eax
mov eax, dword [0x73a958]
push eax
mov eax, dword [esp + 0x30]
sub edx, eax
push ecx
push edx
lea eax, [esp + 0x30]
push ebp
push eax
push 0x732bc0
call fcn.00496340
add esp, 0x1c
test ebx, ebx
jle 0x5fb5f3
mov ecx, dword [0x73a954]
mov edx, dword [esi + 0xe2]
mov eax, dword [esi + 0xd6]
push 2
push 0
push ecx
push edx
push edi
push eax
push edi
push ebp
mov ecx, 0x732bc0
call fcn.00495d80
mov ecx, dword [esi + 0x264]
test byte [ebx + ecx], 1
je 0x5fb6b6
mov edx, dword [0x73a954]
mov eax, dword [esi + 0xe2]
mov ecx, dword [esi + 0xd6]
push 2
push edx
push eax
push edi
push ecx
push edi
push ebp
mov ecx, 0x732bc0
call fcn.00495e50
lea eax, [esi + 0xaa]
xor ebx, ebx
push eax
call fcn.00473240
shl eax, 1
add esp, 4
test eax, eax
jle 0x5fb6af
lea eax, [esi + 0xaa]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esi + 0x264]
movsx ecx, word [eax]
mov eax, dword [esp + 0x84]
cmp dword [eax + edx + 8], ecx
jne 0x5fb68c
test ebx, ebx
jle 0x5fb68c
mov ecx, dword [0x73a954]
mov edx, dword [esi + 0xe2]
mov eax, dword [esi + 0xd6]
push 1
push 0
push ecx
push edx
push edi
push eax
push edi
push ebp
mov ecx, 0x732bc0
call fcn.00495d80
mov eax, dword [esp + 0x78]
add ebx, 2
add eax, 4
mov dword [esp + 0x78], eax
lea eax, [esi + 0xaa]
push eax
call fcn.00473240
shl eax, 1
add esp, 4
cmp ebx, eax
jl 0x5fb648
mov ebx, dword [esp + 0x84]
mov ecx, dword [esi + 0x264]
lea eax, [ebx + ecx]
mov cl, byte [ebx + ecx]
test cl, 2
je 0x5fb6fc
mov edx, dword [eax + 8]
push edx
call fcn.004732f0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x84]
add esp, 4
sub edi, edx
lea edx, [esp + 0x14]
push eax
mov eax, dword [0x73a958]
push eax
push ecx
push edi
push ebp
push edx
push 0x732bc0
call fcn.00496340
add esp, 0x1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3d6]
add ebx, 0x22
cmp eax, ecx
mov dword [esp + 0x84], ebx
jl 0x5fb528
fild dword [esp + 0x8c]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.005f94a0
test eax, eax
jle 0x5fc017
mov edx, dword [esi + 0x264]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [edx + ecx*2 + 0xc]
test eax, eax
lea ecx, [edx + ecx*2]
jl 0x5fc017
mov eax, dword [esp + 0x88]
test eax, eax
je 0x5fc017
mov eax, dword [esi + 0x29c]
test eax, eax
jne 0x5fb776
mov eax, dword [0x8267b0]
test eax, eax
jne 0x5fc017
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x8c]
mov ecx, dword [ecx + 8]
mov edx, edi
add edi, eax
sub edx, esi
push 5
push ecx
lea esi, [edx + eax - 2]
mov eax, dword [esp + 0x88]
lea ebx, [eax + 0x12]
call fcn.004732f0
add esp, 4
mov ecx, 0x732bc0
push eax
mov eax, dword [esp + 0x88]
sub esp, 0x10
mov edx, esp
push ebp
mov dword [edx], esi
mov dword [edx + 4], eax
mov dword [edx + 8], edi
mov dword [edx + 0xc], ebx
call fcn.00496c70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x18
mov eax, dword [esi + 0x5e]
mov edi, dword [esi + 0x4e]
test eax, eax
mov dword [esp + 0x14], edi
je 0x5fb7ee
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x116]
mov ecx, dword [esi + 0xf6]
cdq
fild dword [esi + 0xf2]
idiv ecx
fdivr qword [esi + 0x10e]
mov edx, dword [esi + 0x11e]
fstp qword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x11a]
sub eax, edx
cdq
idiv ecx
cmp ebx, 3
mov dword [esp + 0x20], eax
jne 0x5fba21
mov ecx, dword [esi + 0x13e]
mov edx, dword [esi + 0xda]
mov ebp, dword [esp + 0x80]
push 0
fld qword [esi + 0x106]
push 0
push edi
push ecx
push ecx
mov ecx, dword [esp + 0x90]
lea eax, [edx + ebp - 7]
fstp dword [esp]
mov edx, dword [esp + 0x8c]
push eax
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, 0x732bc0
call fcn.00496a70
mov ecx, dword [esi + 0xf2]
xor edi, edi
test ecx, ecx
jle 0x5fb8f7
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x13e]
mov ebx, dword [esi + 0xd6]
push 0
push 0
push edx
push eax
mov eax, dword [esi + 0xda]
sub eax, ebx
mov edx, ecx
imul eax, edi
sub edx, edi
push ecx
mov dword [esp + 0x98], edx
cdq
fild dword [esp + 0x98]
idiv ecx
fmul qword [esp + 0x3c]
fadd qword [esi + 0x106]
fstp dword [esp]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
add eax, ebx
lea eax, [eax + ebp - 7]
push eax
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, 0x732bc0
call fcn.00496a70
mov ecx, dword [esi + 0xf2]
inc edi
cmp edi, ecx
jl 0x5fb882
mov ecx, dword [esi + 0xf2]
mov edi, 1
cmp ecx, edi
mov dword [esp + 0x10], edi
jle 0x5fb975
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x13e]
mov ebx, dword [esi + 0xda]
push 0
push 0
push edx
push eax
mov eax, dword [esi + 0xde]
sub eax, ebx
push ecx
imul eax, edi
fild dword [esp + 0x24]
fmul qword [esp + 0x3c]
fsubr qword [esi + 0x106]
cdq
fstp dword [esp]
idiv ecx
mov edx, dword [esp + 0x90]
add eax, ebx
lea ecx, [eax + ebp - 7]
mov eax, dword [esp + 0x8c]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, 0x732bc0
call fcn.00496a70
mov ecx, dword [esi + 0xf2]
inc edi
cmp edi, ecx
mov dword [esp + 0x10], edi
jl 0x5fb90a
mov edi, dword [esi + 0xf6]
mov ebx, 1
cmp edi, ebx
jl 0x5fc017
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
add edx, 2
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x84]
mov eax, dword [0x73a998]
mov ecx, dword [esi + 0xe2]
push edx
mov edx, dword [esi + 0xde]
push 0x6a2b24
push 0
push eax
mov eax, ecx
sub eax, edx
imul eax, ebx
cdq
idiv edi
mov edx, dword [esp + 0x9c]
sub ecx, eax
mov eax, dword [esp + 0x88]
lea ecx, [ecx + ebp - 7]
push ecx
push edx
lea ecx, [esp + 0x94]
push eax
push ecx
push 0x732bc0
call fcn.00496440
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0xa8]
mov edi, dword [esi + 0xf6]
add esp, 0x24
inc ebx
add ecx, edx
cmp ebx, edi
mov dword [esp + 0x84], ecx
jle 0x5fb9a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x18
cmp ebx, 1
jne 0x5fba72
mov eax, dword [esi + 0x13e]
mov ebp, dword [esp + 0x80]
fld qword [esi + 0x106]
push 0
push 0x32
push edi
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
push eax
push ecx
mov ecx, dword [esi + 0xda]
lea eax, [esp + 0x90]
fstp dword [esp]
lea edx, [ecx + ebp - 7]
mov ecx, 0x732bc0
push edx
push edi
push ebx
push eax
call fcn.00496a70
jmp 0x5fbab4
mov edx, dword [esi + 0xda]
mov ebp, dword [esp + 0x80]
mov ecx, dword [0x73a964]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
push 0x6c1260
push 0
push ecx
lea eax, [edx + ebp - 7]
lea ecx, [edi + 2]
push eax
push ecx
lea edx, [esp + 0x90]
push ebx
push edx
push 0x732bc0
call fcn.00496440
add esp, 0x20
mov ecx, dword [esi + 0xf2]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x5fbbc7
jmp 0x5fbace
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x84], 1
jne 0x5fbb41
mov edx, dword [esp + 0x14]
push 0
push 0x32
push edx
mov edx, dword [esi + 0x13e]
push edx
mov edx, ecx
sub edx, eax
mov eax, dword [esi + 0xda]
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0xd6]
sub eax, edx
push ecx
imul eax, dword [esp + 0x24]
fild dword [esp + 0x8c]
fmul qword [esp + 0x3c]
fadd qword [esi + 0x106]
cdq
fstp dword [esp]
idiv ecx
mov edx, dword [esi + 0xd6]
lea ecx, [esp + 0x90]
add eax, edx
lea eax, [eax + ebp - 7]
push eax
push edi
push ebx
push ecx
mov ecx, 0x732bc0
call fcn.00496a70
jmp 0x5fbbb0
mov edx, ecx
sub esp, 8
sub edx, eax
mov eax, dword [0x73a95c]
mov dword [esp + 0x80], edx
mov edx, dword [esi + 0xd6]
fild dword [esp + 0x80]
fmul qword [esp + 0x30]
fmul qword [0x663768]
fdiv qword [esi + 0x106]
fstp qword [esp]
push 0x6bc090
push 0
push eax
mov eax, dword [esi + 0xda]
sub eax, edx
imul eax, dword [esp + 0x24]
cdq
idiv ecx
mov ecx, dword [esi + 0xd6]
lea edx, [edi + 2]
add eax, ecx
lea ecx, [eax + ebp - 7]
lea eax, [esp + 0x44]
push ecx
push edx
push ebx
push eax
push 0x732bc0
call fcn.00496440
add esp, 0x28
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xf2]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5fbaca
mov ecx, dword [esi + 0xf2]
mov edx, 1
cmp ecx, edx
mov dword [esp + 0x10], edx
jle 0x5fbcbb
mov eax, dword [esp + 0x84]
cmp eax, edx
mov edx, dword [esi + 0xda]
jne 0x5fbc44
mov eax, dword [esp + 0x14]
push 0
push 0x32
push eax
mov eax, dword [esi + 0x13e]
push eax
mov eax, dword [esi + 0xde]
sub eax, edx
push ecx
imul eax, dword [esp + 0x24]
fild dword [esp + 0x24]
fmul qword [esp + 0x3c]
fsubr qword [esi + 0x106]
cdq
fstp dword [esp]
idiv ecx
mov ecx, dword [esi + 0xda]
lea edx, [esp + 0x90]
add eax, ecx
lea ecx, [eax + ebp - 7]
push ecx
push edi
push ebx
push edx
mov ecx, 0x732bc0
call fcn.00496a70
jmp 0x5fbc9f
fild dword [esp + 0x10]
mov eax, dword [0x73a968]
sub esp, 8
fmul qword [esp + 0x30]
fmul qword [0x663768]
fdiv qword [esi + 0x106]
fstp qword [esp]
push 0x6bc090
push 0
push eax
mov eax, dword [esi + 0xde]
sub eax, edx
imul eax, dword [esp + 0x24]
cdq
idiv ecx
mov ecx, dword [esi + 0xda]
lea edx, [edi + 2]
add eax, ecx
lea ecx, [eax + ebp - 7]
lea eax, [esp + 0x44]
push ecx
push edx
push ebx
push eax
push 0x732bc0
call fcn.00496440
add esp, 0x28
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xf2]
inc eax
mov edx, 1
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5fbbde
mov eax, dword [esi + 0xf6]
mov dword [esp + 0x10], edx
cmp eax, edx
jl 0x5fbe24
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x7c], ecx
jmp 0x5fbce8
mov eax, dword [esp + 0x14]
mov edx, 1
cmp dword [esp + 0x84], edx
jne 0x5fbd3a
mov edx, dword [esi + 0xe2]
push eax
mov dword [esp + 0x7c], edx
call fcn.004725a0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0xde]
add esp, 4
push eax
mov eax, dword [0x73a998]
push 0x32
push eax
mov eax, ecx
sub eax, edx
imul eax, dword [esp + 0x1c]
cdq
idiv dword [esi + 0xf6]
lea edx, [esp + 0x3c]
sub ecx, eax
lea ecx, [ecx + ebp - 7]
push ecx
push edi
push ebx
push edx
jmp 0x5fbdde
mov ecx, dword [esi + 0x48]
mov dl, byte [ecx + 0xed]
cmp dl, 3
mov edx, dword [esi + 0xe2]
mov dword [esp + 0x78], edx
jne 0x5fbda1
mov eax, dword [esi + 0x11e]
mov ecx, dword [esp + 0x7c]
add eax, ecx
push eax
call fcn.004725a0
mov ecx, dword [0x73a964]
add esp, 4
mov edx, dword [esi + 0xde]
push eax
push 0
push ecx
mov ecx, dword [esp + 0x84]
mov eax, ecx
sub eax, edx
imul eax, dword [esp + 0x1c]
cdq
idiv dword [esi + 0xf6]
sub ecx, eax
lea eax, [edi + 2]
lea edx, [ecx + ebp - 7]
lea ecx, [esp + 0x34]
push edx
push eax
push ebx
push ecx
jmp 0x5fbdde
push eax
call fcn.004725a0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esi + 0xde]
add esp, 4
push eax
mov eax, dword [0x73a998]
push 0
push eax
mov eax, ecx
sub eax, edx
imul eax, dword [esp + 0x1c]
cdq
idiv dword [esi + 0xf6]
lea edx, [edi + 2]
sub ecx, eax
lea eax, [esp + 0x44]
lea ecx, [ecx + ebp - 7]
push ecx
push edx
push ebx
push eax
push 0x732bc0
call fcn.00496440
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x3c]
add esp, 0x20
add ecx, edx
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xf6]
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x5fbcdf
mov eax, dword [esp + 0x88]
test eax, eax
je 0x5fc017
mov eax, dword [esi + 0x29c]
test eax, eax
jne 0x5fbe4a
mov eax, dword [0x8267b0]
test eax, eax
jne 0x5fc017
mov eax, dword [esi + 0x4e]
cmp eax, 2
jge 0x5fbe8e
mov eax, dword [esi + 0xda]
mov edx, dword [esi + 0xd6]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x8c]
fild dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0x78], eax
fdivr qword [esi + 0x10e]
fild dword [esp + 0x78]
fmulp st(1)
fadd qword [esi + 0x106]
jmp 0x5fbf6a
mov ecx, dword [esi + 0xde]
mov edx, dword [esp + 0x8c]
cmp edx, ecx
jg 0x5fbf00
cmp eax, 3
mov dword [esp + 0x78], 0x6a2b0c
je 0x5fbeb4
mov dword [esp + 0x78], 0x6a2af4
mov eax, dword [esi + 0xda]
mov ecx, eax
sub eax, edx
sub ecx, dword [esi + 0xd6]
mov edx, dword [esp + 0x78]
sub esp, 8
mov dword [esp + 0x90], ecx
fild dword [esp + 0x90]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x48]
fdivr qword [esi + 0x10e]
fild dword [esp + 0x90]
fmulp st(1)
fadd qword [esi + 0x106]
fstp qword [esp]
push edx
push eax
jmp 0x5fbf7a
mov eax, dword [esi + 0xe2]
cmp edx, eax
jg 0x5fbf48
fild dword [esi + 0x116]
mov esi, eax
sub eax, edx
sub esi, ecx
sub esp, 8
mov dword [esp + 0x80], esi
lea ecx, [esp + 0x48]
fild dword [esp + 0x80]
mov dword [esp + 0x80], eax
fdivp st(1)
fild dword [esp + 0x80]
fmulp st(1)
fstp qword [esp]
push 0x6a2b1c
push ecx
jmp 0x5fbf7a
mov ecx, dword [esi + 0xe6]
fild dword [esi + 0x132]
mov esi, ecx
sub esi, eax
sub ecx, edx
mov dword [esp + 0x78], esi
fidiv dword [esp + 0x78]
mov dword [esp + 0x78], ecx
fimul dword [esp + 0x78]
sub esp, 8
lea edx, [esp + 0x48]
fstp qword [esp]
push 0x6a2b1c
push edx
call dword [fcn.0065f1cc]
add esp, 0x10
lea eax, [esp + 0x40]
push eax
call fcn.00471da0
mov al, byte [esp + 0x44]
add esp, 4
test al, al
je 0x5fc017
cmp dword [esp + 0x84], 1
jne 0x5fbfd4
mov ecx, dword [esp + 0x8c]
lea esi, [esp + 0x40]
push 5
push esi
sub esp, 0x10
lea eax, [ecx + ebp]
mov esi, esp
lea edx, [edi + 0x34]
lea ecx, [eax - 0xe]
push ebx
mov dword [esi], edi
mov dword [esi + 4], ecx
mov ecx, 0x732bc0
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
call fcn.00496c70
mov al, byte [esp + 0x40]
test al, al
je 0x5fc017
cmp dword [esp + 0x84], 2
jne 0x5fc017
mov edx, dword [esp + 0x8c]
push 5
add ebp, edx
lea edx, [esp + 0x44]
push edx
lea ecx, [edi + 0x30]
sub esp, 0x10
lea eax, [ebp - 0xe]
mov edx, esp
push ebx
mov dword [edx], edi
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov ecx, 0x732bc0
mov dword [edx + 0xc], ebp
call fcn.00496c70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x18