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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f099f
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
fldz
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
fst qword [esp + 0xbc]
mov ebx, dword [ebp + 0x14]
fst qword [esp + 0xc4]
mov esi, ecx
fst qword [esp + 0xcc]
mov ecx, dword [ebp + 0x10]
fst qword [esp + 0xd4]
mov dword [esp + 0x38], ecx
fst qword [esp + 0xdc]
mov ecx, edi
fstp qword [esp + 0xe4]
mov dword [esp + 0x44], eax
call fcn.004f41c0
fstp qword [esp + 0x84]
test word [edi + 0x20], 0xfff9
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
fst qword [esp + 0x114]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
fstp qword [esp + 0x11c]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fstp qword [esp + 0x124]
fild dword [esp + 0x1c]
fst qword [esp + 0x54]
fdivp st(1)
jne 0x5b56f7
fst qword [esp + 0x1c]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x24]
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
fld qword [esp + 0x11c]
fdiv qword [esp + 0x54]
fst qword [esp + 0x1c]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x24]
fstp qword [esp + 0x9c]
fstp qword [esp + 0xa4]
fld qword [esp + 0x124]
fdiv qword [esp + 0x54]
jmp 0x5b5763
fchs
fst qword [esp + 0x1c]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x24]
fstp qword [esp + 0x8c]
fstp qword [esp + 0x94]
fld qword [esp + 0x11c]
fdiv qword [esp + 0x54]
fchs
fst qword [esp + 0x1c]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x24]
fstp qword [esp + 0x9c]
fstp qword [esp + 0xa4]
fld qword [esp + 0x124]
fdiv qword [esp + 0x54]
fchs
fst qword [esp + 0x1c]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x24]
fld qword [esp + 0x1c]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x24]
movzx eax, byte [ebx + 8]
fstp qword [esp + 0xac]
and eax, 0xf
sub eax, 1
fstp qword [esp + 0xb4]
je 0x5b58bd
sub eax, 1
je 0x5b586d
sub eax, 1
jne 0x5b58c5
mov ebx, dword [esp + 0xa8]
fld qword [esp + 0x11c]
mov eax, dword [esp + 0x9c]
fst qword [esp + 0x12c]
fld qword [esp + 0x124]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
fstp qword [esp + 0x134]
mov dword [esp + 0xc8], ebx
mov ebx, dword [esp + 0xac]
fstp qword [esp + 0x13c]
mov dword [esp + 0xcc], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xd0], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xd4], ebx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
mov dword [esp + 0x50], 4
jmp 0x5b58c5
mov ecx, dword [esp + 0x9c]
fld qword [esp + 0x11c]
mov edx, dword [esp + 0xa0]
fstp qword [esp + 0x12c]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x50], 2
jmp 0x5b58c5
mov dword [esp + 0x50], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
lea ecx, [esp + 0x170]
fstp qword [esp + 0x24]
call fcn.0051a7e0
mov edx, dword [edi]
mov eax, dword [edx + 0x5c]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x200], ebx
call eax
cmp eax, 0x11
jne 0x5b5904
cmp dword [edi + 0x24], ebx
je 0x5b5904
mov ebx, edi
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x44]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jp 0x5b59d9
fsubr qword [ecx]
fstp qword [ecx]
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
jne 0x5b61cf
test ebx, ebx
je 0x5b59a3
mov eax, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x24]
push eax
push ebx
push edi
lea ecx, [esp + 0x150]
call fcn.0051a800
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 1
call fcn.0051ed40
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 0
call fcn.0051a830
mov edx, dword [0x6390ac]
push edx
lea ecx, [esp + 0x174]
call fcn.00520220
push 0
mov dword [0x6390bc], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x6390ac]
push eax
mov ecx, esi
call edx
mov dword [0x6390bc], 0
jmp 0x5b61cf
mov ecx, dword [0x6390ac]
push edi
call fcn.0056fa50
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x6390bc], 3
call fcn.0056c870
mov dword [0x6390bc], 0
jmp 0x5b61cf
fsub qword [ecx]
lea ecx, [esp + 0xec]
push ecx
mov ecx, edi
fstp qword [esp + 0x28]
fild dword [edi + 0x14]
fld qword [0x601ef0]
fmul st(1), st(0)
fxch st(1)
fchs
fst qword [esp + 0x60]
fild dword [edi + 0x18]
fmulp st(2)
fxch st(1)
fchs
fst qword [esp + 0x68]
fstp qword [esp + 0x80]
fstp qword [esp + 0x78]
call fcn.004f2ea0
lea ecx, [esp + 0x30]
call fcn.00501a20
lea ecx, [esp + 0x3c]
call fcn.00501a20
xor eax, eax
lea ecx, [esp + 0x19c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.004f1250
test word [edi + 0x20], 0xfff9
mov byte [esp + 0x200], 2
jne 0x5b5a5d
mov edx, dword [esp + 0x44]
fld qword [edx]
fdiv qword [esp + 0x54]
jmp 0x5b5a69
mov eax, dword [esp + 0x44]
fld qword [eax]
fdiv qword [esp + 0x54]
fchs
fst qword [esp + 0x1c]
call sub.MSVCR90.dll__CIcos
fstp qword [esp + 0x6c]
fld qword [esp + 0x1c]
call sub.MSVCR90.dll__CIsin
fld qword [esp + 0x6c]
fld st(0)
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
fld qword [esp + 0x5c]
fmul st(1), st(0)
fld qword [esp + 0x64]
fld st(0)
fmul st(5)
fsubp st(3)
fmulp st(3)
fmulp st(3)
fxch st(1)
faddp st(2)
fst qword [esp + 0xfc]
fstp qword [esp + 0x5c]
fst qword [esp + 0x104]
fstp qword [esp + 0x64]
fld qword [0x5f3df0]
jne 0x5b5c89
fld qword [esp + 0x74]
fld st(0)
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xec]
fldz
fcom st(1)
fnstsw ax
fxch st(1)
test ah, 0x41
jp 0x5b5aec
fadd st(4)
jmp 0x5b5aee
fsub st(4)
call fcn.005c3ce0
fld qword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x48], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0xf4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x5b5b17
faddp st(3)
jmp 0x5b5b19
fsubrp st(3)
fxch st(2)
call fcn.005c3ce0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x34]
call fcn.00508610
fld qword [esp + 0x64]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
fld qword [esp + 0x6c]
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x40]
call fcn.00508610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5b5b80
cmp ecx, dword [esp + 0x40]
je 0x5b5c8b
mov dx, word [edi + 0x20]
fld qword [esp + 0x84]
neg eax
sub esp, 8
mov dword [esp + 0x38], eax
fstp qword [esp]
and dx, 0xfff9
neg ecx
movzx eax, dx
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x1c]
push ecx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x6390ac]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.0056bd70
test eax, eax
je 0x5b5c7d
test ebx, ebx
je 0x5b5c62
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [0x6390ac]
call fcn.0056fc30
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
lea edx, [esp + 0x1a4]
push edx
lea ecx, [esp + 0x150]
call fcn.0051a800
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 3
call fcn.0051ed40
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.0051a830
push 0x6390ac
lea ecx, [esp + 0x174]
call fcn.005b5460
add esp, 4
push 0
mov dword [0x6390bc], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x6390ac]
push eax
mov ecx, esi
call edx
mov dword [0x6390bc], 0
jmp 0x5b5c8b
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x6390bc], 3
call fcn.0056c870
mov dword [0x6390bc], 0
jmp 0x5b5c8b
fstp st(0)
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x50]
jle 0x5b5c9b
xor eax, eax
jmp 0x5b5c9c
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005c58d0
fld qword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
fsub qword [esp + eax*8 + 0x114]
mov dword [esp + 0x1c], 1
fst qword [esp + 0x24]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
je 0x5b5f53
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, eax
shl edx, 4
fld qword [esp + edx + 0x8c]
lea ecx, [esp + edx + 0x8c]
fld qword [ecx + 8]
fld st(1)
fld qword [esp + 0xfc]
fmul st(1), st(0)
fld qword [esp + 0x104]
fld st(0)
fmul st(4)
fsubp st(3)
fmulp st(4)
fmulp st(2)
fxch st(2)
faddp st(1)
fxch st(1)
fst qword [esp + 0xfc]
fstp qword [esp + 0x5c]
fst qword [esp + 0x104]
fstp qword [esp + 0x64]
test al, 1
jne 0x5b5f0a
fld qword [esp + 0x74]
fld st(0)
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xec]
fcom st(3)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x5b5d66
fadd st(1), st(0)
jmp 0x5b5d68
fsub st(1), st(0)
fxch st(1)
call fcn.005c3ce0
fld qword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x48], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0xf4]
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 1
jne 0x5b5d93
faddp st(3)
jmp 0x5b5d95
fsubp st(3)
fxch st(2)
call fcn.005c3ce0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x34]
call fcn.00508610
fld qword [esp + 0x64]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x11c]
fld qword [esp + 0x6c]
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x40]
call fcn.00508610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5b5dff
cmp ecx, dword [esp + 0x40]
je 0x5b5f0c
fld qword [esp + 0x84]
neg eax
mov dword [esp + 0x30], eax
mov ax, word [edi + 0x20]
sub esp, 8
neg ecx
fstp qword [esp]
and ax, 0xfff9
movzx eax, ax
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [0x6390ac]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
mov ecx, esi
call fcn.0056bd70
test eax, eax
je 0x5b5efe
test ebx, ebx
je 0x5b5ee3
mov ecx, dword [0x6390ac]
lea edx, [esp + 0x19c]
push edx
call fcn.0056fc30
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x150]
call fcn.0051a800
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 4
call fcn.0051ed40
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.0051a830
push 0x6390ac
lea ecx, [esp + 0x174]
call fcn.005b5460
mov ecx, dword [0x6390ac]
add esp, 4
push 0
push eax
mov dword [0x6390bc], eax
mov edx, dword [esi + 0x34]
push ecx
mov ecx, esi
call edx
mov dword [0x6390bc], 0
jmp 0x5b5f0c
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x6390bc], 3
call fcn.0056c870
mov dword [0x6390bc], 0
jmp 0x5b5f0c
fstp st(0)
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x50]
jle 0x5b5f1c
xor eax, eax
jmp 0x5b5f1d
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005c58d0
fld qword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
fsub qword [esp + eax*8 + 0x114]
fst qword [esp + 0x24]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x5b5ce2
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
jne 0x5b61ad
fld qword [esp + 0x74]
fld st(0)
fld qword [esp + 0x54]
fmul st(1), st(0)
fxch st(1)
fadd qword [esp + 0xec]
fcom st(3)
fnstsw ax
fld qword [0x5f3df0]
test ah, 1
jne 0x5b5f88
fadd st(1), st(0)
jmp 0x5b5f8a
fsub st(1), st(0)
fxch st(1)
call fcn.005c3ce0
fld qword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x48], eax
fmulp st(3)
fxch st(2)
fadd qword [esp + 0xf4]
fcom st(4)
fnstsw ax
fstp st(4)
test ah, 1
jne 0x5b5fb5
faddp st(3)
jmp 0x5b5fb7
fsubp st(3)
fxch st(2)
call fcn.005c3ce0
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x11c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x34]
call fcn.00508610
mov ecx, edi
call fcn.004f1ba0
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.004f1b70
sub esp, 8
lea ecx, [esp + 0x11c]
fstp qword [esp]
call fcn.004f0ec0
push eax
lea ecx, [esp + 0x40]
call fcn.00508610
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5b602c
cmp ecx, dword [esp + 0x40]
je 0x5b6138
mov dx, word [edi + 0x20]
fld qword [esp + 0x84]
mov edi, dword [edi + 0x1c]
neg eax
sub esp, 8
mov dword [esp + 0x38], eax
fstp qword [esp]
and dx, 0xfff9
movzx eax, dx
push eax
neg ecx
push edi
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x6390ac]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.0056bd70
test eax, eax
je 0x5b612c
test ebx, ebx
je 0x5b6111
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [0x6390ac]
call fcn.0056fc30
mov eax, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x24]
push eax
push ebx
lea edx, [esp + 0x1a4]
push edx
lea ecx, [esp + 0x150]
call fcn.0051a800
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 5
call fcn.0051ed40
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.0051a830
push 0x6390ac
lea ecx, [esp + 0x174]
call fcn.005b5460
add esp, 4
push 0
mov dword [0x6390bc], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x6390ac]
push eax
mov ecx, esi
call edx
mov dword [0x6390bc], 0
jmp 0x5b61af
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x6390bc], 3
call fcn.0056c870
mov dword [0x6390bc], 0
jmp 0x5b61af
fldz
mov ecx, dword [esp + 0x44]
fcomp qword [ecx]
fnstsw ax
test ah, 0x44
jp 0x5b61af
cmp dword [esp + 0x1c], 1
jne 0x5b61af
mov ecx, edi
call fcn.004f1230
cmp ax, 2
jne 0x5b61af
test ebx, ebx
je 0x5b6184
mov edx, dword [0x6390ac]
push edx
mov ecx, ebx
call fcn.00520220
push 0
mov dword [0x6390bc], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x6390ac]
push eax
mov ecx, esi
call edx
jmp 0x5b61af
mov ecx, dword [0x6390ac]
push edi
call fcn.0056fa50
mov eax, dword [0x6390ac]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x6390bc], 3
call fcn.0056c870
jmp 0x5b61af
fstp st(0)
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x44]
fchs
mov byte [esp + 0x200], 0
fstp qword [ecx]
lea ecx, [esp + 0x19c]
call fcn.004f1b60
lea ecx, [esp + 0x170]
mov dword [esp + 0x200], 0xffffffff
call fcn.0051a830
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.005c3bb6
mov esp, ebp
pop ebp
ret 0x10