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

Disassembly:
sub esp, 0x15c
fld dword [esp + 0x164]
mov eax, dword [ecx + 0xc]
fmul dword [0x6aa3c8]
push esi
xor esi, esi
test eax, eax
fstp dword [esp + 8]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], esi
jle 0x54213e
push ebx
xor edx, edx
push ebp
mov dword [esp + 0x28], edx
push edi
jmp 0x541c90
mov eax, dword [esp + 0x178]
cmp esi, dword [eax + 0xc]
jge 0x542119
mov ebx, dword [ecx + 8]
mov ebp, dword [eax + 8]
add ebx, edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x58], 0x3f800000
mov dword [esp + 0x44], 0x3f800000
mov dword [esp + 0x30], 0x3f800000
mov eax, dword [ebx + 0x114]
add ebp, edx
test eax, eax
je 0x541f8e
mov esi, dword [ebx + 0x104]
test esi, esi
je 0x541e3b
lea edi, [esi - 1]
xor ecx, ecx
test edi, edi
jle 0x541d82
fld dword [esp + 0x170]
mov edx, dword [ebx + 0x10c]
fsub dword [0x6a8644]
fstp dword [esp + 0x18]
fild dword [edx]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x541d82
mov eax, dword [ebx + 0x104]
inc ecx
add edx, 0x14
dec eax
cmp ecx, eax
jl 0x541d66
mov edx, dword [ebx + 0x10c]
lea eax, [ecx + ecx*4]
fild dword [edx + eax*4]
fcomp dword [esp + 0x170]
fnstsw ax
test ah, 0x41
jne 0x541da1
dec ecx
jns 0x541da1
xor ecx, ecx
lea eax, [esi + esi*4]
fild dword [edx + eax*4 - 0x14]
fcomp dword [esp + 0x170]
fnstsw ax
test ah, 0x41
jp 0x541de9
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*4 + 4]
mov eax, dword [edx]
mov dword [esp + 0x70], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x74], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x78], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.005d11d9
jmp 0x541e64
lea eax, [ecx + ecx*4]
fild dword [edx + eax*4]
lea eax, [edx + eax*4]
fild dword [eax + 0x14]
inc ecx
cmp ecx, edi
jne 0x541e03
mov ecx, dword [esp + 0x10]
fstp st(0)
fild dword [ecx + 4]
fld dword [esp + 0x170]
push ecx
fsub st(2)
lea edx, [eax + 0x18]
fxch st(1)
add eax, 4
fsub st(2)
fdivp st(1)
fstp dword [esp]
push edx
push eax
lea eax, [esp + 0x7c]
fstp st(0)
push eax
call fcn.005d2508
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.005d11d9
jmp 0x541e64
lea esi, [ebx + 0x80]
mov ecx, 0x10
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov esi, dword [ebx + 0x108]
test esi, esi
je 0x541f6e
lea eax, [esi - 1]
xor ecx, ecx
test eax, eax
jle 0x541eae
fld dword [esp + 0x170]
mov edx, dword [ebx + 0x110]
fsub dword [0x6a8644]
fstp dword [esp + 0x18]
fild dword [edx]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x541eae
mov eax, dword [ebx + 0x108]
inc ecx
add edx, 0x10
dec eax
cmp ecx, eax
jl 0x541e92
mov edx, dword [ebx + 0x110]
mov eax, ecx
shl eax, 4
fild dword [eax + edx]
fcomp dword [esp + 0x170]
fnstsw ax
test ah, 0x41
jne 0x541ecf
dec ecx
jns 0x541ecf
xor ecx, ecx
shl esi, 4
fild dword [esi + edx - 0x10]
shl ecx, 4
fcomp dword [esp + 0x170]
fnstsw ax
test ah, 0x41
jp 0x541f10
fld dword [ecx + edx + 4]
fstp dword [esp + 0x60]
mov edx, dword [ebx + 0x110]
fld dword [ecx + edx + 8]
fstp dword [esp + 0x64]
mov eax, dword [ebx + 0x110]
fld dword [ecx + eax + 0xc]
fstp dword [esp + 0x68]
jmp 0x541f9f
mov eax, ecx
fild dword [eax + edx]
lea ecx, [eax + edx + 4]
fld dword [esp + 0x170]
fsub st(1)
fild dword [eax + edx + 0x10]
fsub st(2)
fdivp st(1)
fstp st(1)
fld dword [eax + edx + 0x14]
fsub dword [ecx]
fmul st(1)
fadd dword [ecx]
fstp dword [esp + 0x60]
mov ecx, dword [ebx + 0x110]
fld dword [ecx + eax + 0x18]
add ecx, eax
fsub dword [ecx + 8]
fmul st(1)
fadd dword [ecx + 8]
fstp dword [esp + 0x64]
mov edx, dword [ebx + 0x110]
fld dword [eax + edx + 0x1c]
add eax, edx
fsub dword [eax + 0xc]
fmul st(1)
fadd dword [eax + 0xc]
fstp dword [esp + 0x68]
fstp st(0)
jmp 0x541f9f
mov eax, dword [ebx + 0xb0]
mov dword [esp + 0x60], eax
mov ecx, dword [ebx + 0xb4]
mov dword [esp + 0x64], ecx
mov edx, dword [ebx + 0xb8]
mov dword [esp + 0x68], edx
jmp 0x541f9f
lea esi, [ebx + 0x80]
mov ecx, 0x10
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov ecx, 0x10
lea esi, [esp + 0x30]
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
call fcn.005d1e83
lea edx, [esp + 0xec]
push edx
lea eax, [esp + 0xa0]
lea esi, [ebp + 0x80]
mov ecx, 0x10
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
call fcn.005d1e83
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.005d2508
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.005d11d9
fld dword [ebp + 0xb0]
fld dword [ebp + 0xb4]
mov ecx, dword [ebp + 0xb8]
fxch st(1)
mov dword [esp + 0x88], ecx
fsub dword [esp + 0x20]
fmul dword [esp + 0x14]
fadd dword [esp + 0x20]
fstp dword [esp + 0x60]
fsub dword [esp + 0x24]
fmul dword [esp + 0x14]
fadd dword [esp + 0x24]
fstp dword [esp + 0x64]
fld dword [esp + 0x88]
fsub dword [esp + 0x28]
fmul dword [esp + 0x14]
fadd dword [esp + 0x28]
fstp dword [esp + 0x68]
mov eax, dword [ebx + 0x100]
cmp eax, 0xffffffff
jle 0x542104
mov edx, dword [esp + 0x10]
imul eax, eax, 0x118
mov ecx, dword [edx + 8]
lea edx, [eax + ecx + 0xc0]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x134]
push ecx
call fcn.005d04b8
lea esi, [esp + 0x12c]
jmp 0x542108
lea esi, [esp + 0x30]
lea edi, [ebx + 0xc0]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
inc esi
add edx, 0x118
cmp esi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], edx
jl 0x541c90
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x15c
ret 0xc