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

Disassembly:
sub esp, 0x1e4
push ebx
mov ebx, ecx
mov eax, dword [ebx + 8]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x5408bc
cmp dword [ebx + 0x2c], ebp
je 0x5408bc
mov ecx, dword [esp + 0x1f0]
cmp ecx, ebp
je 0x5408bc
cmp dword [ecx + 8], ebp
je 0x5408bc
cmp dword [ebx + 0x1c], ebp
mov dword [esp + 0xc], ebp
jle 0x5408bc
push esi
push edi
jmp 0x540460
mov ecx, dword [esp + 0x1f8]
mov eax, dword [ebx + 8]
fld dword [0x6a8210]
add eax, ebp
mov edx, dword [eax]
mov dword [esp + 0x98], edx
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 8]
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0x9c], edx
mov eax, dword [eax + 8]
mov edx, dword [ebx + 8]
mov dword [esp + 0xa0], eax
fsub dword [edx + ebp + 0xc]
lea eax, [edx + ebp]
movzx eax, byte [eax + 0x11]
mov edx, eax
fstp dword [esp + 0x10]
imul edx, edx, 0x118
shl eax, 6
lea edx, [edx + ecx + 0xc0]
push edx
add eax, esi
push eax
lea eax, [esp + 0x17c]
push eax
call fcn.005d04b8
mov ecx, 0x10
lea esi, [esp + 0x174]
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0xe4]
fmul dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0xe8]
fmul dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0xec]
fmul dword [esp + 0x10]
mov ecx, dword [ebx + 8]
movzx eax, byte [ecx + ebp + 0x10]
fstp dword [esp + 0x20]
fld dword [esp + 0xf0]
mov edx, eax
fmul dword [esp + 0x10]
fstp dword [esp + 0x24]
fld dword [esp + 0xf4]
fmul dword [esp + 0x10]
fstp dword [esp + 0x28]
fld dword [esp + 0xf8]
fmul dword [esp + 0x10]
fstp dword [esp + 0x2c]
fld dword [esp + 0xfc]
fmul dword [esp + 0x10]
fstp dword [esp + 0x30]
fld dword [esp + 0x100]
fmul dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x104]
fmul dword [esp + 0x10]
fstp dword [esp + 0x38]
fld dword [esp + 0x108]
fmul dword [esp + 0x10]
fstp dword [esp + 0x3c]
fld dword [esp + 0x10c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x40]
fld dword [esp + 0x110]
fmul dword [esp + 0x10]
fstp dword [esp + 0x44]
fld dword [esp + 0x114]
fmul dword [esp + 0x10]
fstp dword [esp + 0x48]
fld dword [esp + 0x118]
fmul dword [esp + 0x10]
fstp dword [esp + 0x4c]
fld dword [esp + 0x11c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x50]
fld dword [esp + 0x120]
fmul dword [esp + 0x10]
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x1f8]
imul edx, edx, 0x118
mov ecx, dword [ecx + 8]
lea edx, [edx + ecx + 0xc0]
push edx
mov edx, dword [ebx + 0x2c]
shl eax, 6
add eax, edx
push eax
lea eax, [esp + 0x1bc]
push eax
call fcn.005d04b8
mov ecx, 0x10
lea esi, [esp + 0x1b4]
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
fld dword [ecx + ebp + 0xc]
fld dword [esp + 0x124]
fmul st(1)
fld dword [esp + 0x128]
fmul st(2)
fstp dword [esp + 0x5c]
fld dword [esp + 0x12c]
fmul st(2)
fstp dword [esp + 0x60]
fld dword [esp + 0x130]
fmul st(2)
fstp dword [esp + 0x64]
fld dword [esp + 0x134]
fmul st(2)
fstp dword [esp + 0x68]
fld dword [esp + 0x138]
fmul st(2)
fstp dword [esp + 0x6c]
fld dword [esp + 0x13c]
fmul st(2)
fstp dword [esp + 0x70]
fld dword [esp + 0x140]
fmul st(2)
fstp dword [esp + 0x74]
fld dword [esp + 0x144]
fmul st(2)
fstp dword [esp + 0x78]
fld dword [esp + 0x148]
fmul st(2)
fstp dword [esp + 0x7c]
fld dword [esp + 0x14c]
fmul st(2)
fstp dword [esp + 0x80]
fld dword [esp + 0x150]
fmul st(2)
fstp dword [esp + 0x84]
fld dword [esp + 0x154]
fmul st(2)
fstp dword [esp + 0x88]
fld dword [esp + 0x158]
fmul st(2)
fstp dword [esp + 0x8c]
fld dword [esp + 0x15c]
fmul st(2)
fstp dword [esp + 0x90]
fld dword [esp + 0x160]
fmul st(2)
fstp dword [esp + 0x94]
fadd dword [esp + 0x18]
fstp dword [esp + 0xa4]
fstp st(0)
fld dword [esp + 0x5c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0xa8]
fld dword [esp + 0x60]
fadd dword [esp + 0x20]
fstp dword [esp + 0xac]
fld dword [esp + 0x64]
fadd dword [esp + 0x24]
fstp dword [esp + 0xb0]
fld dword [esp + 0x68]
fadd dword [esp + 0x28]
fstp dword [esp + 0xb4]
fld dword [esp + 0x6c]
fadd dword [esp + 0x2c]
mov edx, dword [esp + 0x208]
push edx
lea eax, [esp + 0xa8]
fstp dword [esp + 0xbc]
push eax
fld dword [esp + 0x78]
mov ecx, eax
fadd dword [esp + 0x38]
push ecx
fstp dword [esp + 0xc8]
fld dword [esp + 0x80]
fadd dword [esp + 0x40]
fstp dword [esp + 0xcc]
fld dword [esp + 0x84]
fadd dword [esp + 0x44]
fstp dword [esp + 0xd0]
fld dword [esp + 0x88]
fadd dword [esp + 0x48]
fstp dword [esp + 0xd4]
fld dword [esp + 0x8c]
fadd dword [esp + 0x4c]
fstp dword [esp + 0xd8]
fld dword [esp + 0x90]
fadd dword [esp + 0x50]
fstp dword [esp + 0xdc]
fld dword [esp + 0x94]
fadd dword [esp + 0x54]
fstp dword [esp + 0xe0]
fld dword [esp + 0x98]
fadd dword [esp + 0x58]
fstp dword [esp + 0xe4]
fld dword [esp + 0x9c]
fadd dword [esp + 0x5c]
fstp dword [esp + 0xe8]
fld dword [esp + 0xa0]
fadd dword [esp + 0x60]
fstp dword [esp + 0xec]
call fcn.005d04b8
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xa8]
push eax
mov ecx, 0x21f1c78
call fcn.00531110
mov ecx, dword [esp + 0x204]
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x16c]
push eax
call fcn.005cfa6f
fld dword [0x6a8210]
fdiv dword [esp + 0x16c]
mov ecx, dword [esp + 0x1fc]
fld dword [esp + 0x164]
fmul st(1)
fabs
fld st(0)
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x540880
fstp dword [ecx]
jmp 0x540882
fstp st(0)
fmul dword [esp + 0x168]
mov ecx, dword [esp + 0x200]
fabs
fld st(0)
fcomp dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x5408a1
fstp dword [ecx]
jmp 0x5408a3
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x1c]
inc eax
add ebp, 0x28
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x540459
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret 0x14