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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x6255ff
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x682d00]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x682d00]
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.0051dfc0
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 0x5680d7
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 0x568143
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 0x56829d
sub eax, 1
je 0x56824d
sub eax, 1
jne 0x5682a5
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 0x5682a5
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 0x5682a5
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.005726c0
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 0x5682e4
cmp dword [edi + 0x24], ebx
je 0x5682e4
mov ebx, edi
fld qword [esp + 0x24]
mov ecx, dword [esp + 0x44]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jp 0x5683b9
fsubr qword [ecx]
fstp qword [ecx]
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
jne 0x568baf
test ebx, ebx
je 0x568383
mov eax, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x24]
push eax
push ebx
push edi
lea ecx, [esp + 0x150]
call fcn.005726e0
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 1
call fcn.00576c20
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 0
call fcn.00572710
mov edx, dword [0x683a94]
push edx
lea ecx, [esp + 0x174]
call fcn.005780f0
push 0
mov dword [0x683aa4], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x683a94]
push eax
mov ecx, esi
call edx
mov dword [0x683aa4], 0
jmp 0x568baf
mov ecx, dword [0x683a94]
push edi
call fcn.00582430
mov eax, dword [0x683a94]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x683aa4], 3
call fcn.005472d0
mov dword [0x683aa4], 0
jmp 0x568baf
fsub qword [ecx]
lea ecx, [esp + 0xec]
push ecx
mov ecx, edi
fstp qword [esp + 0x28]
fild dword [edi + 0x14]
fld qword [0x642420]
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.0051c850
lea ecx, [esp + 0x30]
call fcn.005f2930
lea ecx, [esp + 0x3c]
call fcn.005f2930
xor eax, eax
lea ecx, [esp + 0x19c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.0051a860
test word [edi + 0x20], 0xfff9
mov byte [esp + 0x200], 2
jne 0x56843d
mov edx, dword [esp + 0x44]
fld qword [edx]
fdiv qword [esp + 0x54]
jmp 0x568449
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 [0x632648]
jne 0x568669
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 0x5684cc
fadd st(4)
jmp 0x5684ce
fsub st(4)
call fcn.005f9c80
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 0x5684f7
faddp st(3)
jmp 0x5684f9
fsubrp st(3)
fxch st(2)
call fcn.005f9c80
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.005218e0
push eax
lea ecx, [esp + 0x34]
call fcn.00521ad0
fld qword [esp + 0x64]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
fld qword [esp + 0x6c]
fstp qword [esp]
call fcn.005218e0
push eax
lea ecx, [esp + 0x40]
call fcn.00521ad0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x568560
cmp ecx, dword [esp + 0x40]
je 0x56866b
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 [0x683a94]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.005465a0
test eax, eax
je 0x56865d
test ebx, ebx
je 0x568642
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [0x683a94]
call fcn.00582610
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.005726e0
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 3
call fcn.00576c20
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.00572710
push 0x683a94
lea ecx, [esp + 0x174]
call fcn.00567e40
add esp, 4
push 0
mov dword [0x683aa4], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x683a94]
push eax
mov ecx, esi
call edx
mov dword [0x683aa4], 0
jmp 0x56866b
mov eax, dword [0x683a94]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x683aa4], 3
call fcn.005472d0
mov dword [0x683aa4], 0
jmp 0x56866b
fstp st(0)
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x50]
jle 0x56867b
xor eax, eax
jmp 0x56867c
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005fd0e0
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 0x568933
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 0x5688ea
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 [0x632648]
test ah, 1
jne 0x568746
fadd st(1), st(0)
jmp 0x568748
fsub st(1), st(0)
fxch st(1)
call fcn.005f9c80
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 0x568773
faddp st(3)
jmp 0x568775
fsubp st(3)
fxch st(2)
call fcn.005f9c80
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.005218e0
push eax
lea ecx, [esp + 0x34]
call fcn.00521ad0
fld qword [esp + 0x64]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x11c]
fld qword [esp + 0x6c]
fstp qword [esp]
call fcn.005218e0
push eax
lea ecx, [esp + 0x40]
call fcn.00521ad0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x5687df
cmp ecx, dword [esp + 0x40]
je 0x5688ec
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 [0x683a94]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
mov ecx, esi
call fcn.005465a0
test eax, eax
je 0x5688de
test ebx, ebx
je 0x5688c3
mov ecx, dword [0x683a94]
lea edx, [esp + 0x19c]
push edx
call fcn.00582610
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.005726e0
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 4
call fcn.00576c20
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.00572710
push 0x683a94
lea ecx, [esp + 0x174]
call fcn.00567e40
mov ecx, dword [0x683a94]
add esp, 4
push 0
push eax
mov dword [0x683aa4], eax
mov edx, dword [esi + 0x34]
push ecx
mov ecx, esi
call edx
mov dword [0x683aa4], 0
jmp 0x5688ec
mov eax, dword [0x683a94]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x683aa4], 3
call fcn.005472d0
mov dword [0x683aa4], 0
jmp 0x5688ec
fstp st(0)
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x50]
jle 0x5688fc
xor eax, eax
jmp 0x5688fd
inc eax
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005fd0e0
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 0x5686c2
mov ecx, dword [esp + 0x38]
test byte [ecx], 1
jne 0x568b8d
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 [0x632648]
test ah, 1
jne 0x568968
fadd st(1), st(0)
jmp 0x56896a
fsub st(1), st(0)
fxch st(1)
call fcn.005f9c80
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 0x568995
faddp st(3)
jmp 0x568997
fsubp st(3)
fxch st(2)
call fcn.005f9c80
fxch st(1)
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x11c]
mov dword [esp + 0x5c], eax
fstp qword [esp]
call fcn.005218e0
push eax
lea ecx, [esp + 0x34]
call fcn.00521ad0
mov ecx, edi
call fcn.0051b390
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.0051b360
sub esp, 8
lea ecx, [esp + 0x11c]
fstp qword [esp]
call fcn.005218e0
push eax
lea ecx, [esp + 0x40]
call fcn.00521ad0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [esp + 0x3c]
jne 0x568a0c
cmp ecx, dword [esp + 0x40]
je 0x568b18
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 [0x683a94]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.005465a0
test eax, eax
je 0x568b0c
test ebx, ebx
je 0x568af1
lea ecx, [esp + 0x19c]
push ecx
mov ecx, dword [0x683a94]
call fcn.00582610
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.005726e0
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x204], 5
call fcn.00576c20
lea ecx, [esp + 0x144]
mov byte [esp + 0x200], 2
call fcn.00572710
push 0x683a94
lea ecx, [esp + 0x174]
call fcn.00567e40
add esp, 4
push 0
mov dword [0x683aa4], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x683a94]
push eax
mov ecx, esi
call edx
mov dword [0x683aa4], 0
jmp 0x568b8f
mov eax, dword [0x683a94]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x683aa4], 3
call fcn.005472d0
mov dword [0x683aa4], 0
jmp 0x568b8f
fldz
mov ecx, dword [esp + 0x44]
fcomp qword [ecx]
fnstsw ax
test ah, 0x44
jp 0x568b8f
cmp dword [esp + 0x1c], 1
jne 0x568b8f
mov ecx, edi
call fcn.0051a840
cmp ax, 2
jne 0x568b8f
test ebx, ebx
je 0x568b64
mov edx, dword [0x683a94]
push edx
mov ecx, ebx
call fcn.005780f0
push 0
mov dword [0x683aa4], eax
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [0x683a94]
push eax
mov ecx, esi
call edx
jmp 0x568b8f
mov ecx, dword [0x683a94]
push edi
call fcn.00582430
mov eax, dword [0x683a94]
push 0
push 3
push eax
mov ecx, esi
mov dword [0x683aa4], 3
call fcn.005472d0
jmp 0x568b8f
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.0051b350
lea ecx, [esp + 0x170]
mov dword [esp + 0x200], 0xffffffff
call fcn.00572710
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.005f9aee
mov esp, ebp
pop ebp
ret 0x10