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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e2dfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
lea eax, [ebx*8 + 0x1f]
mov ecx, dword [ebp + 0x24]
cdq
and edx, 0x1f
push edi
add eax, edx
mov edx, dword [ebp + 0x20]
sar eax, 5
shl eax, 2
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ebx
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x68], esi
call fcn.00543cf0
mov eax, dword [esi]
lea edi, [esi + 0x85c]
push edi
mov ecx, esi
call dword [eax + 0x34]
fld qword [esi + 0x878]
fsub qword [edi]
fld qword [esi + 0x880]
fsub qword [esi + 0x864]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x2c], 0
test ecx, ecx
fstp qword [esp + 0x64]
fmul qword [0x5e7c18]
fsubr qword [esi + 0x91c]
fld qword [esi + 0x944]
fmul qword [0x5e7c18]
faddp st(1)
fstp qword [esp + 0x74]
fld qword [esp + 0x64]
fmul qword [0x5e7c18]
fsubr qword [esi + 0x924]
fld qword [esi + 0x94c]
fmul qword [0x5e7c18]
faddp st(1)
fstp qword [esp + 0x7c]
jle 0x544437
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x28], edi
jle 0x5443e5
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
jmp 0x543f3b
xor edi, edi
cmp byte [eax], 0x80
jne 0x5443bd
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jl 0x5443bd
push 0x944
mov byte [eax], 0xff
call fcn.005b449a
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, edi
mov dword [esp + 0x98], edi
je 0x543f84
mov ecx, eax
call fcn.0055f180
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x543f88
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x80c]
mov edx, dword [edi]
push eax
mov ecx, edi
mov dword [esp + 0x9c], 0xffffffff
call dword [edx + 0x40]
push 1
mov ecx, edi
call fcn.00549fe0
push 0
mov ecx, edi
call fcn.0054a170
mov eax, dword [esi + 0x818]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x3c]
push 0x1c
call fcn.005b449a
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x543feb
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], 0x2710
jmp 0x543fed
xor eax, eax
fild dword [esp + 0x28]
push eax
mov ecx, edi
fmul qword [esi + 0x944]
fadd qword [esp + 0x78]
fstp qword [eax]
fild dword [esp + 0x30]
fmul qword [esi + 0x94c]
fadd qword [esp + 0x80]
fstp qword [eax + 8]
call fcn.00565880
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
push 1
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push ebx
push edx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x3c], 8
mov dword [esp + 0x48], 0
call fcn.00544450
test eax, eax
je 0x544099
mov ecx, dword [esp + 0x30]
push 1
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ebx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00544450
test eax, eax
jne 0x544069
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
push 0
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ebx
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x3c], 8
call fcn.00544450
test eax, eax
je 0x544111
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ebx
push ecx
push edx
push edi
mov ecx, esi
call fcn.00544450
test eax, eax
jne 0x5440e1
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jle 0x5443b1
mov ecx, dword [ebp + 8]
push edi
call fcn.005476f0
mov ecx, edi
call fcn.00566540
cmp eax, 3
jbe 0x5443bd
mov ecx, edi
call fcn.005655a0
push eax
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.00565610
mov ebx, eax
mov ecx, edi
push ebx
call fcn.00565610
mov esi, eax
mov ecx, edi
push esi
call fcn.00565610
mov edi, eax
mov eax, dword [ebx]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
mov edx, dword [eax]
sub esp, 0x1c
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
mov dword [ecx + 0x14], edx
mov eax, dword [eax + 0x18]
mov edx, dword [esp + 0x5c]
mov dword [ecx + 0x18], eax
mov ecx, esp
mov dword [esp + 0x88], esp
mov eax, dword [edx]
push eax
call fcn.0042cf80
call fcn.00544ae0
mov eax, dword [esi]
add esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
mov edx, dword [eax]
sub esp, 0x1c
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
fstp qword [esp + 0x94]
mov dword [ecx + 0x14], edx
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x18], eax
mov edx, dword [ebx]
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call fcn.0042cf80
call fcn.00544ae0
mov eax, dword [edi]
add esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
mov edx, dword [eax]
sub esp, 0x1c
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
fstp qword [esp + 0xa4]
mov dword [ecx + 0x14], edx
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x18], eax
mov edx, dword [esi]
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call fcn.0042cf80
call fcn.00544ae0
fstp qword [esp + 0x9c]
mov edx, dword [esi]
add esp, 0x38
mov ecx, dword [ebx]
mov eax, dword [esp + 0x40]
fld qword [edx + 8]
fsub qword [ecx + 8]
fld qword [edx]
fsub qword [ecx]
fpatan
fld qword [eax + 0x944]
fadd qword [eax + 0x94c]
fadd st(0), st(0)
fstp qword [esp + 0x54]
fld qword [esp + 0x6c]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 1
je 0x54438a
mov eax, dword [esp + 0x24]
fld qword [ecx + 8]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
fsub qword [eax + 8]
fld qword [ecx]
fsub qword [eax]
mov eax, dword [edi]
fpatan
fsubr st(1)
fld qword [eax + 8]
fsub qword [edx + 8]
fld qword [eax]
fsub qword [edx]
fpatan
fsub st(2)
fmulp st(1)
fcomp qword [0x5e80d8]
fnstsw ax
test ah, 1
fstp st(0)
je 0x54438c
fld qword [esp + 0x5c]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
je 0x544317
fld qword [esp + 0x64]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
je 0x544317
fld qword [edx]
fadd qword [ecx]
fmul qword [0x5e7c18]
fstp qword [ecx]
mov ecx, dword [esi]
mov eax, dword [ebx]
fld qword [ecx + 8]
fadd qword [eax + 8]
fmul qword [0x5e7c18]
fstp qword [eax + 8]
jmp 0x54438c
fld qword [esp + 0x5c]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
je 0x544343
fld qword [esp + 0x64]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
jne 0x544343
mov ecx, dword [esp + 0x10]
push 1
push ebx
call fcn.00565d90
jmp 0x544390
fld qword [esp + 0x5c]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
jne 0x54438c
fld qword [esp + 0x64]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 0x41
jne 0x54438c
fld qword [esp + 0x5c]
fcomp qword [esp + 0x64]
push 1
fnstsw ax
test ah, 1
je 0x54437e
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00565d90
jmp 0x544390
mov ecx, dword [esp + 0x14]
push esi
call fcn.00565d90
jmp 0x544392
fstp st(0)
mov dword [esp + 0x24], ebx
mov ebx, esi
mov ecx, dword [esp + 0x10]
push edi
mov esi, edi
call fcn.00565610
mov edi, eax
test edi, edi
jne 0x544162
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x40]
jmp 0x5443bd
test edi, edi
je 0x5443bd
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add eax, 4
inc ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
inc eax
cmp ecx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], eax
jl 0x543f39
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add edi, eax
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x3c]
shl eax, 2
inc edx
add edi, eax
cmp edx, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], edi
jl 0x543f19
test ecx, ecx
jle 0x544437
mov edx, dword [ebp + 0xc]
mov esi, ecx
test ebx, ebx
jle 0x54442e
mov eax, edx
mov ecx, ebx
cmp byte [eax], 0xff
je 0x54442a
mov byte [eax], 0
inc eax
dec ecx
jne 0x544422
mov ecx, dword [esp + 0x48]
add edx, ecx
dec esi
jne 0x54441a
mov ecx, dword [esp + 0x90]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x28