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

Disassembly:
sub esp, 0x154
mov eax, dword [0x68f170]
mov dword [esp + 0x80], ecx
cmp eax, 1
je 0x54d323
mov al, byte [ecx + 0x30]
push ebx
push ebp
mov ebp, dword [ecx + 8]
xor ebx, ebx
mov dword [esp + 0x48], ebp
test al, al
mov dword [esp + 0x5c], ebx
jb 0x54d321
push esi
push edi
add ebp, 0x7c
jmp 0x54c9ee
xor ebx, ebx
mov eax, dword [ebp - 0x78]
and eax, 0x100006
cmp eax, 0x100006
jne 0x54d2ee
mov ecx, dword [0x68008c]
lea esi, [ebp - 4]
lea edi, [ebp - 0x10]
push esi
push edi
call fcn.004e1fc0
cmp eax, 1
jne 0x54d2ee
lea ecx, [esp + 0x104]
push ecx
push esi
call fcn.004bf190
mov eax, dword [0x68b19c]
fld dword [eax + 0x120]
fchs
fstp dword [esp + 0xac]
fld dword [eax + 0x124]
fchs
fstp dword [esp + 0xb0]
fld dword [eax + 0x128]
fchs
fst dword [esp + 0xb4]
fmul dword [ebp + 4]
fld dword [esp + 0xb0]
fmul dword [ebp]
faddp st(1)
fld dword [esp + 0xac]
fmul dword [esi]
faddp st(1)
call fcn.0058c730
fst dword [esp + 0x9c]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
and eax, 0x7fffffff
push eax
call fcn.004beac0
fmul dword [0x5da2f8]
add esp, 0xc
fcom dword [0x5da6cc]
fnstsw ax
test ah, 5
jp 0x54cab4
fstp st(0)
fld dword [0x5da6cc]
mov eax, dword [0x68b19c]
fld dword [eax]
fsub dword [edi]
fstp dword [esp + 0x34]
fld dword [eax + 4]
fsub dword [ebp - 0xc]
fstp dword [esp + 0x38]
fld dword [eax + 8]
fsub dword [ebp - 8]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x54cb26
fld dword [esp + 0x38]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x54cb26
fld dword [esp + 0x3c]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x54cb26
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
fld dword [esp + 0x78]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
jmp 0x54cb62
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x74]
fmul dword [esp + 0x3c]
fmul dword [ebp + 4]
fld dword [esp + 0x74]
fmul dword [ebp]
mov dword [esp + 0x40], 1
faddp st(1)
fld dword [esp + 0x70]
fmul dword [esi]
faddp st(1)
fcomp dword [ebp + 0x78]
fnstsw ax
and eax, 0x4100
je 0x54cb8e
mov dword [esp + 0x40], ebx
mov edx, dword [0x680134]
mov eax, dword [edx*4 + 0x6800d0]
cmp dword [eax + 0x6c], ebx
je 0x54cbc7
cmp dword [esp + 0x40], ebx
je 0x54cbb2
fstp st(0)
mov dword [esp + 0x2c], 0xffc8ffc8
jmp 0x54cbde
fmul dword [0x5da6d0]
call fcn.0058c3f0
shl eax, 0x18
or eax, 0x32cc32
jmp 0x54cbda
fmul dword [0x5da6d0]
call fcn.0058c3f0
shl eax, 0x18
or eax, 0xffffcc
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x108]
mov edx, dword [ebp + 0x9c]
mov edi, dword [0x68aee8]
mov dword [esp + 0x14], eax
mov eax, dword [0x68aeec]
mov esi, eax
mov dword [esp + 0xc8], ecx
mov ecx, dword [ebp + 0x80]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x88], ecx
shl esi, 6
add esi, edi
inc eax
mov ecx, esi
mov dword [esp + 0x98], edx
mov dword [esp + 0xa0], esi
mov dword [0x68aeec], eax
call fcn.00529e60
mov eax, dword [0x68aeec]
mov edx, dword [0x68aee8]
mov edi, eax
shl edi, 6
add edi, edx
inc eax
mov ecx, edi
mov dword [0x68aeec], eax
call fcn.00529e60
fld dword [esp + 0xc8]
push ecx
mov ecx, edi
fchs
fstp dword [esp]
call fcn.00529fb0
fld dword [esp + 0x98]
fadd dword [0x5e0528]
push ecx
mov ecx, esi
fchs
fstp dword [esp]
call fcn.00529ee0
push edi
push esi
push esi
call fcn.004a1286
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x54], 0
call fcn.00529bc0
fld dword [esp + 0x88]
fmul dword [0x5da2f8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
fptan
fstp st(0)
fmul dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x60477c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
fnstsw ax
test ah, 0x44
jp 0x54cd1b
fld dword [esp + 0x14]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x54cd1b
mov ecx, dword [esp + 0x1c]
mov eax, edx
mov edx, dword [esp + 0x24]
jmp 0x54cd71
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [0x60477c]
fmul st(1)
fstp dword [esp + 0xbc]
fld dword [esp + 0x18]
fmul st(1)
mov ecx, dword [esp + 0xbc]
fstp dword [esp + 0xc0]
mov eax, dword [esp + 0xc0]
fmul dword [esp + 0x14]
fstp dword [esp + 0xc4]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x20], eax
mov al, byte [0x68f568]
test al, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
jne 0x54cd92
mov eax, dword [0x68f568]
or al, 1
mov dword [0x68f568], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x680098]
and eax, 0xffffff
push 0x64
push 0x3e8
mov dword [esp + 0x94], eax
call fcn.004be5d0
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], ebx
fild qword [esp + 0xd8]
mov edi, 0x68f184
mov esi, 0x68f178
mov dword [esp + 0x10], 0x14
fmul dword [0x5da74c]
fmul dword [0x5f4e70]
fst dword [esp + 0x30]
fld st(0)
fcos
fxch st(1)
fsin
fld dword [esp + 0x1c]
fld st(2)
fmul dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul st(3)
fxch st(1)
fmul st(2)
faddp st(1)
fstp dword [esp + 0x24]
fstp st(0)
fstp st(0)
fld qword [0x5f4e68]
fcos
fstp dword [esp + 0x68]
fld qword [0x5f4e68]
fsin
fstp dword [esp + 0x60]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
call fcn.00529bc0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x54cf1a
fld dword [esp + 0x44]
fmul dword [0x5f4e64]
fld dword [esp + 0x48]
fmul dword [0x5f4e64]
fld dword [esp + 0x4c]
fmul dword [0x5f4e64]
mov eax, esi
inc ebx
add esi, 0x18
add edi, 0x18
fstp dword [esp + 0x118]
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
fld dword [esp + 0x58]
fmul dword [esp + 0x28]
fld dword [esp + 0x5c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x154]
fxch st(1)
fadd dword [ebp - 0x10]
fstp dword [esp + 0xf8]
fadd dword [ebp - 0xc]
fld dword [esp + 0x154]
fadd dword [ebp - 8]
fstp dword [esp + 0x100]
fld dword [esp + 0xf8]
fadd st(3)
fstp dword [esp + 0xcc]
mov ecx, dword [esp + 0xcc]
fadd st(1)
mov dword [eax], ecx
fstp dword [esp + 0xd0]
mov edx, dword [esp + 0xd0]
fstp st(0)
fstp st(0)
fld dword [esp + 0x100]
fadd dword [esp + 0x118]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [edi - 0x18], edx
fstp dword [esp + 0xd4]
mov ecx, dword [esp + 0xd4]
mov dword [eax + 8], ecx
fld dword [esp + 0x54]
fmul dword [esp + 0x18]
fld dword [esp + 0x58]
fmul dword [esp + 0x18]
fld dword [esp + 0x5c]
fmul dword [esp + 0x18]
lea eax, [ebp - 0x10]
mov ecx, dword [0x68008c]
fstp dword [esp + 0x124]
fld dword [esp + 0x44]
fmul dword [esp + 0x14]
fld dword [esp + 0x48]
fmul dword [esp + 0x14]
fld dword [esp + 0x4c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x13c]
fxch st(1)
fadd dword [eax]
fstp dword [esp + 0xe0]
fadd dword [ebp - 0xc]
fld dword [esp + 0x13c]
fadd dword [ebp - 8]
fstp dword [esp + 0xe8]
fld dword [esp + 0xe0]
fadd st(3)
fstp dword [esp + 0x7c]
fadd st(1)
fstp dword [esp + 0x80]
fstp st(0)
fstp st(0)
fld dword [esp + 0xe8]
fadd dword [esp + 0x124]
fstp dword [esp + 0x84]
mov edx, dword [ecx + 0x1bb0]
test edx, edx
je 0x54cfe2
mov ecx, edx
lea edx, [esp + 0x7c]
push edx
push eax
lea eax, [esp + 0x160]
push eax
call fcn.005255a0
mov edx, dword [eax]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
jmp 0x54cffe
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x84]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x8c]
inc ebx
mov dword [edi], eax
mov eax, dword [esp + 0x40]
add esi, 0x18
add edi, 0x18
cmp eax, 1
jne 0x54d0de
fld dword [esp + 0x44]
fmul dword [0x5f4e64]
fld dword [esp + 0x48]
fmul dword [0x5f4e64]
fld dword [esp + 0x4c]
fmul dword [0x5f4e64]
mov ecx, esi
inc ebx
add esi, 0x18
add edi, 0x18
fstp dword [esp + 0x148]
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
fld dword [esp + 0x58]
fmul dword [esp + 0x28]
fld dword [esp + 0x5c]
fmul dword [esp + 0x28]
fstp dword [esp + 0x130]
fxch st(1)
fadd dword [ebp - 0x10]
fstp dword [esp + 0xec]
fadd dword [ebp - 0xc]
fld dword [esp + 0x130]
fadd dword [ebp - 8]
fstp dword [esp + 0xf4]
fld dword [esp + 0xec]
fadd st(3)
fstp dword [esp + 0xb0]
mov edx, dword [esp + 0xb0]
fadd st(1)
mov dword [ecx], edx
fstp dword [esp + 0xb4]
mov eax, dword [esp + 0xb4]
fstp st(0)
fstp st(0)
fld dword [esp + 0xf4]
fadd dword [esp + 0x148]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [edi - 0x18], eax
fstp dword [esp + 0xb8]
mov edx, dword [esp + 0xb8]
mov dword [ecx + 8], edx
fld dword [esp + 0x30]
fadd dword [0x5f4e70]
fst dword [esp + 0x30]
fcomp dword [0x5da6c4]
fnstsw ax
and eax, 0x4100
jne 0x54d109
fld dword [esp + 0x30]
fsub dword [0x5da6c4]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fld dword [esp + 0x68]
fmul dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul dword [esp + 0x60]
mov eax, dword [esp + 0x10]
dec eax
fsubp st(1)
mov dword [esp + 0x10], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul dword [esp + 0x68]
fxch st(1)
fmul dword [esp + 0x60]
faddp st(1)
fstp dword [esp + 0x24]
jne 0x54ce35
lea eax, [ebx + ebx*2]
mov ecx, 6
shl eax, 3
mov esi, 0x68f178
push 2
lea edi, [eax + 0x68f178]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x68f190]
mov ecx, 6
mov esi, 0x68f190
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x680038]
call fcn.00539300
mov ecx, dword [0x680038]
push 0
push 0
mov esi, eax
call fcn.005378b0
mov ecx, dword [0x680084]
call fcn.00543e60
mov ecx, dword [0x680084]
call fcn.00543e00
mov ecx, dword [0x680084]
call fcn.00543e40
mov ecx, dword [0x680038]
push 0
call fcn.00537aa0
mov ecx, dword [0x680038]
push 0
mov edi, eax
call fcn.00537970
mov ecx, dword [0x680038]
push 0x142
call fcn.00536970
mov ecx, dword [0x680038]
push 0x18
push 0x68f178
push 0x28
call fcn.0053c9e0
mov ecx, dword [0x680038]
push esi
call fcn.00539300
mov ecx, dword [0x680038]
push edi
call fcn.00537aa0
mov eax, dword [0x68aeec]
mov ecx, dword [0x680134]
mov edx, dword [esp + 0x50]
sub eax, 2
mov dword [0x68aeec], eax
fld dword [edx + ecx*4 + 8]
fst dword [esp + 0x10]
fcomp dword [0x60477c]
fnstsw ax
and eax, 0x4100
jne 0x54d2ee
mov eax, dword [esp + 0x94]
mov ecx, eax
mov dword [esp + 0x9c], eax
and ecx, 0x7fffffff
mov dword [esp + 0x6c], ecx
fld dword [esp + 0x6c]
fcomp dword [0x5da710]
fnstsw ax
test ah, 5
jp 0x54d2ee
mov ecx, dword [0x68008c]
lea esi, [ebp - 0x10]
push esi
call fcn.004e2010
cmp eax, 1
jne 0x54d2ee
fld dword [esp + 0x6c]
fmul dword [0x5e8734]
push ecx
fmul dword [0x5da710]
fstp dword [esp]
call fcn.004beac0
fsubr dword [0x5f53f4]
add esp, 4
fmul dword [esp + 0x10]
fcom dword [0x5da6cc]
fst dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x54d2bb
mov dword [esp + 0x10], 0x3e800000
fmul dword [0x5da6d0]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push edx
call fcn.0058c3f0
shl eax, 0x18
or eax, 0xffffff
push eax
mov eax, dword [0x680134]
push esi
mov ecx, dword [eax*4 + 0x6800d0]
call fcn.004dc100
fstp st(0)
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x50]
xor ecx, ecx
mov cl, byte [edx + 0x30]
inc eax
add edi, 0x164
add ebp, 0x164
cmp eax, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x50], edi
jle 0x54c9ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret