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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
mov eax, dword [0x86518c]
push ebx
mov ebx, dword [0x890118]
push esi
push edi
sub eax, dword [ebx + 0x10]
mov esi, ecx
lea ecx, [ebx + 0xbd0]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
test eax, eax
je 0x5fa078
cmp word [eax + 0x10], 0
je 0x5f9a94
mov eax, dword [0x89e7b0]
test eax, eax
jne 0x5fa078
movsx edi, byte [esi + 0xd8]
mov eax, dword [esi + edi*4 + 8]
test eax, eax
je 0x5f9abc
mov eax, dword [eax]
cmp eax, 4
je 0x5f9abc
cmp eax, 6
je 0x5f9abc
test eax, eax
je 0x5f9abc
cmp eax, 5
jne 0x5f9b84
mov edx, dword [ebx + 0x24]
test edx, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
je 0x5fa078
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
test eax, eax
je 0x5f9b1b
cmp word [eax + 0x10], 0
je 0x5f9aee
mov ecx, dword [0x89e7b0]
test ecx, ecx
jne 0x5f9b1b
mov eax, dword [eax]
movsx ebx, word [eax + 0xa]
mov eax, dword [esi + ebx*4 + 0xe0]
test eax, eax
je 0x5f9b06
cmp eax, 0x7fffffff
jne 0x5f9b1b
mov ecx, dword [esi + ebx*4 + 8]
test ecx, ecx
je 0x5f9b1b
call fcn.0049d7e0
test al, al
jne 0x5f9b3a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 4
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jne 0x5f9ad7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x110]
mov ecx, eax
sub ecx, edx
add dword [esi + edi*4 + 0xf8], ecx
mov dword [esi + 0x110], eax
mov byte [esi + 0xd8], bl
mov edx, dword [0x86518c]
add edx, 0x1f40
push eax
mov dword [esi + 0xdc], edx
movsx eax, byte [esi + 0xd8]
push eax
call fcn.005893f0
mov ebx, dword [0x890118]
add esp, 8
movsx ecx, byte [esi + 0xd8]
mov eax, dword [esi + ecx*4 + 0xe0]
test eax, eax
je 0x5f9ba1
cmp eax, 0x7fffffff
jne 0x5fa078
mov eax, dword [0x850094]
test eax, eax
je 0x5f9c71
movsx edx, byte [eax + 0x7a5474]
imul edx, edx, 0x3c
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fild dword [esp + 0xc]
fmul dword [0x784268]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x5f9c6f
fmul dword [0x784264]
fadd dword [0x784260]
call fcn.0075bc00
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x24]
xor edi, edi
test eax, eax
jle 0x5f9c3d
mov edx, 0xbd0
lea ebx, [ebx]
mov ecx, dword [edx + ebx]
test ecx, ecx
je 0x5f9c32
call fcn.005edfd0
test eax, eax
jne 0x5f9c32
mov eax, dword [ecx]
movsx eax, word [eax + 0xa]
movsx ecx, byte [esi + 0xd8]
cmp eax, ecx
je 0x5f9c32
mov ecx, dword [esp + 0xc]
mov dword [esi + eax*4 + 0xe0], ecx
mov ebx, dword [0x890118]
mov eax, dword [ebx + 0x24]
inc edi
add edx, 4
cmp edi, eax
jl 0x5f9c00
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.005f9a00
movsx eax, byte [esi + 0xd8]
mov ecx, dword [esi + eax*4 + 0xe0]
push ecx
push eax
call fcn.00589460
mov byte [esi + 0x118], 1
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov ecx, dword [esi + ecx*4 + 8]
call fcn.005f8d60
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], eax
xor eax, eax
lea ecx, [esi + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
test ebx, ebx
je 0x5f9fc3
movsx ecx, byte [esi + 0xd8]
cmp eax, ecx
je 0x5f9fc3
mov ecx, ebx
call fcn.0049d7e0
test al, al
je 0x5f9fc3
mov ecx, ebx
call fcn.005f8d60
mov ebx, eax
movsx eax, word [ebx + 0xa]
lea edi, [esi + eax*4 + 0xe0]
mov ecx, edi
mov dword [esp + 0x38], eax
call fcn.00401850
test eax, eax
jne 0x5f9fc3
mov ecx, dword [esp + 0x28]
call fcn.004018c0
lea ecx, [ebx + 0x60]
push eax
push ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], ecx
call fcn.0043ce80
fstp dword [esp + 0x3c]
mov ecx, dword [0x890118]
add esp, 8
call fcn.005eec20
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 5
jp 0x5f9d56
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov eax, edx
push eax
push ecx
mov dword [edi], edx
call fcn.00589460
add esp, 8
jmp 0x5f9fc3
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5f9fc3
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5f9fc3
fld dword [ebx + 0x42c]
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x42c]
mov edx, dword [0x7a56a8]
fcomp dword [0x7a56a8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edx
fnstsw ax
test ah, 5
jp 0x5f9db2
fld dword [esp + 0x2c]
fcomp dword [0x7a56a8]
fnstsw ax
test ah, 5
jp 0x5f9fc3
push 0
push 0
lea edx, [esp + 0x78]
push edx
call fcn.005dd0d0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
push ecx
call fcn.0043ce80
fst dword [esp + 0x40]
fcomp dword [0x7a56b0]
add esp, 8
fnstsw ax
test ah, 0x41
je 0x5f9fc3
fld dword [esp + 0x2c]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x5f9eaa
mov ecx, edi
call fcn.004018d0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
mov dword [esp + 0x48], edx
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fcomp dword [0x7a6364]
fnstsw ax
test ah, 5
jp 0x5f9e43
mov ecx, edi
call fcn.004018e0
fld dword [eax]
fld dword [eax + 4]
fxch st(1)
fstp dword [esp + 0x48]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fmul dword [ebx + 0x74]
fld dword [esp + 0x48]
fmul dword [ebx + 0x70]
faddp st(1)
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 5
jnp 0x5f9fc3
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x78]
call fcn.00401280
fld dword [esp + 0x64]
fmul dword [ebx + 0x74]
fld dword [esp + 0x68]
fmul dword [ebx + 0x78]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [ebx + 0x70]
faddp st(1)
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 5
jp 0x5f9fc3
fld dword [esp + 0x38]
jmp 0x5f9f54
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x54]
push eax
call fcn.00401b50
mov ecx, edi
call fcn.004018d0
fld dword [esp + 0x54]
fmul dword [eax + 4]
fld dword [esp + 0x50]
fmul dword [eax]
faddp st(1)
fcom dword [0x7a6360]
fnstsw ax
test ah, 5
jp 0x5f9f77
fstp st(0)
mov edi, 1
push edi
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00401b50
fld dword [eax + 4]
mov edx, dword [eax]
fst dword [esp + 0x54]
fmul dword [ebx + 0x74]
mov dword [esp + 0x50], edx
fld dword [esp + 0x50]
fmul dword [ebx + 0x70]
faddp st(1)
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 5
jnp 0x5f9fc3
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
push eax
mov ecx, ebx
call fcn.0040cc30
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
push edi
push ecx
mov ecx, ebx
call fcn.0040cc30
fsubr dword [esp + 0x38]
fcom dword [0x7d7d3c]
fnstsw ax
test ah, 5
jnp 0x5f9fc1
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x5f9f69
fld dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5f9fc1
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x30]
mov dword [esp + 0x24], edx
jmp 0x5f9fc3
fcomp dword [0x7a635c]
fnstsw ax
test ah, 0x41
jne 0x5f9f8b
xor edi, edi
jmp 0x5f9ee8
mov ecx, edi
call fcn.004018e0
fld dword [eax]
fld dword [eax + 4]
fld dword [esp + 0x54]
fmul st(1)
fxch st(2)
fmul dword [esp + 0x50]
faddp st(2)
fxch st(1)
fcomp dword [0x7d7d3c]
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x5f9ee3
xor edi, edi
jmp 0x5f9ee8
fstp st(0)
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, 6
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x5f9cb0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5f9ffb
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.005f9a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
test edx, edx
jl 0x5fa078
mov eax, dword [0x86518c]
mov ecx, dword [esi + 0xdc]
sub ecx, eax
mov dword [esp + 0x44], ecx
fild dword [esp + 0x44]
fmul dword [0x784268]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 5
jp 0x5fa078
movsx eax, byte [esi + 0xd8]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esi + 0x110]
lea eax, [esi + eax*4 + 0xf8]
mov edi, ecx
sub edi, ebx
add dword [eax], edi
mov dword [esi + 0x110], ecx
mov byte [esi + 0xd8], dl
mov edx, dword [0x86518c]
add edx, 0x1f40
mov dword [esi + 0xdc], edx
movsx eax, byte [esi + 0xd8]
push ecx
push eax
call fcn.005893f0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret