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

Disassembly:
sub esp, 0xfc
push ebp
mov ebp, ecx
lea eax, [ebp + 0x34]
test eax, eax
je 0x561872
push ebx
mov ebx, dword [esp + 0x108]
fld dword [ebx + 0x24]
push esi
push edi
fstp dword [esp + 0x28]
fld dword [ebx + 0x28]
lea ecx, [esp + 0x48]
push ecx
fstp dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
mov ecx, ebx
call fcn.00537720
fld dword [esp + 0x44]
fld dword [0x5ad750]
mov edi, dword [0xa47b7c]
fmul st(1), st(0)
lea esi, [ebx + 0x24c]
fxch st(1)
push esi
lea eax, [esp + 0xb0]
fptan
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
fstp st(0)
fld st(0)
fld dword [esp + 0x34]
fmul st(1), st(0)
fxch st(1)
fst dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(3), st(0)
fxch st(3)
fstp dword [esp + 0x38]
fld dword [esp + 0x54]
fmulp st(4)
fxch st(3)
fptan
fstp st(0)
fld st(0)
fmul st(2)
fst dword [esp + 0x28]
fxch st(1)
fmulp st(3)
fxch st(2)
fstp dword [esp + 0x44]
fxch st(2)
fchs
fst dword [esp + 0x3c]
fstp dword [esp + 0x1c]
fstp dword [esp + 0x20]
fstp dword [esp + 0x24]
call fcn.0040abe0
fld dword [esp + 0x2c]
push esi
fchs
lea edx, [esp + 0xbc]
fst dword [esp + 0x40]
push edx
fstp dword [esp + 0x18]
lea eax, [esp + 0x18]
fld dword [esp + 0x40]
push eax
fstp dword [esp + 0x20]
mov ecx, edi
fld dword [esp + 0x30]
fstp dword [esp + 0x24]
call fcn.0040abe0
fld dword [esp + 0x3c]
push esi
fstp dword [esp + 0x14]
lea ecx, [esp + 0xc8]
fld dword [esp + 0x3c]
fchs
fst dword [esp + 0x40]
fstp dword [esp + 0x18]
fld dword [esp + 0x28]
fstp dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.0040abe0
fld dword [esp + 0x30]
fstp dword [esp + 0x10]
push esi
fld dword [esp + 0x20]
lea eax, [esp + 0xd4]
fchs
push eax
fst dword [esp + 0x38]
lea ecx, [esp + 0x18]
fstp dword [esp + 0x1c]
push ecx
fld dword [esp + 0x34]
mov ecx, edi
fstp dword [esp + 0x24]
call fcn.0040abe0
fld dword [esp + 0x20]
push esi
fstp dword [esp + 0x14]
lea edx, [esp + 0xe0]
fld dword [esp + 0x20]
push edx
fstp dword [esp + 0x1c]
lea eax, [esp + 0x18]
fld dword [esp + 0x30]
push eax
mov ecx, edi
fstp dword [esp + 0x24]
call fcn.0040abe0
fld dword [esp + 0x20]
fstp dword [esp + 0x10]
push esi
fld dword [esp + 0x34]
lea ecx, [esp + 0xec]
fstp dword [esp + 0x18]
push ecx
fld dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
fstp dword [esp + 0x24]
mov ecx, edi
call fcn.0040abe0
fld dword [esp + 0x2c]
fstp dword [esp + 0x10]
push esi
fld dword [esp + 0x40]
lea eax, [esp + 0xf8]
fstp dword [esp + 0x18]
push eax
fld dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
fstp dword [esp + 0x24]
mov ecx, edi
call fcn.0040abe0
fld dword [esp + 0x2c]
fstp dword [esp + 0x10]
push esi
fld dword [esp + 0x3c]
lea edx, [esp + 0x104]
fstp dword [esp + 0x18]
push edx
fld dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
fstp dword [esp + 0x24]
mov ecx, edi
call fcn.0040abe0
xor eax, eax
mov byte [esp + 0x4c], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov ecx, dword [ebp + 4]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
lea eax, [ebp + 0x24]
test eax, eax
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], ecx
je 0x561787
fld dword [eax]
fstp dword [esp + 0x58]
fld dword [eax + 4]
fstp dword [esp + 0x5c]
fld dword [eax + 8]
fstp dword [esp + 0x60]
lea eax, [ebp + 0xc]
test eax, eax
je 0x5617a2
fld dword [eax]
fstp dword [esp + 0x64]
fld dword [eax + 4]
fstp dword [esp + 0x68]
fld dword [eax + 8]
fstp dword [esp + 0x6c]
push 8
lea edx, [esp + 0xb0]
push edx
lea ecx, [esp + 0x54]
call fcn.00560cc0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x54]
call fcn.00561030
mov edx, dword [ebx + 0x314]
mov ebx, dword [edx + 0x304]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
add ebx, 1
cmp edx, eax
jg 0x56186f
mov ecx, dword [esp + 0x34]
lea esi, [ecx + edx*4]
imul esi, esi, 0x124
sub eax, edx
lea edi, [esi + ebp + 0x140]
add eax, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x40]
cmp ecx, ebp
jg 0x56185a
sub ebp, ecx
add ebp, 1
mov ecx, edi
xor esi, esi
call fcn.005549f0
test eax, eax
jbe 0x56184b
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
add esi, 1
cmp dword [ecx + 8], ebx
jae 0x561840
mov edx, dword [esp + 0x110]
push edx
mov dword [ecx + 8], ebx
call fcn.00556460
mov ecx, edi
call fcn.005549f0
cmp esi, eax
jb 0x561822
add edi, 0x124
sub ebp, 1
jne 0x561815
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
add edi, 0x490
sub dword [esp + 0x1c], 1
mov dword [esp + 0x20], edi
jne 0x561808
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xfc
ret 4