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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a69c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x44], edi
jl 0x54266e
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov eax, ecx
sub edx, esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], 0x5baaf4
mov dword [esp + 0x48], eax
mov dword [esp + 0x7c], edx
xor esi, esi
cmp eax, esi
mov dword [esp + 0x34], esi
jl 0x542642
mov ecx, dword [ebp + 0x14]
mov ebx, 0x5baaf4
add edi, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
jmp 0x5421d1
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x7c]
mov edx, esi
mov ecx, dword [eax + edi]
add edx, ecx
lea ecx, [esp + 0x54]
push edx
call fcn.00533b20
cmp ebx, 0x5bab6c
mov dword [esp + 0xb0], 0
mov dword [esp + 0xc], 1
jl 0x5422e2
add esi, 0xffffffd8
mov ecx, dword [esp + 0xc]
lea edi, [ecx*8]
lea ecx, [esp + 0x54]
call fcn.00442960
mov edx, dword [esp + 0x18]
mov ecx, esi
fstp qword [esp + 0x3c]
add ecx, dword [edx]
call fcn.00442960
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub esp, 8
mov edx, dword [ecx]
lea ecx, [esp + 0x5c]
add eax, edx
fmul qword [eax]
fimul dword [ebx]
fsubr qword [esp + 0x44]
fstp qword [esp]
call fcn.00442900
lea ecx, [esp + 0x54]
call fcn.004429a0
mov edx, dword [esp + 0x18]
mov ecx, esi
fstp qword [esp + 0x3c]
add ecx, dword [edx]
call fcn.004429a0
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub esp, 8
mov edx, dword [ecx]
lea ecx, [esp + 0x5c]
add eax, edx
fmul qword [eax]
fimul dword [ebx]
fsubr qword [esp + 0x44]
fstp qword [esp]
call fcn.00442920
lea ecx, [esp + 0x54]
call fcn.004429e0
mov edx, dword [esp + 0x18]
mov ecx, esi
fstp qword [esp + 0x3c]
add ecx, dword [edx]
call fcn.004429e0
mov eax, dword [ebp + 0xc]
sub esp, 8
mov ecx, dword [eax]
add edi, ecx
lea ecx, [esp + 0x5c]
fmul qword [edi]
fimul dword [ebx]
fsubr qword [esp + 0x44]
fstp qword [esp]
call fcn.00442940
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
inc eax
add ebx, 4
sub esi, 0x28
cmp eax, ecx
mov dword [esp + 0xc], eax
jle 0x542208
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
cmp eax, 0x5bab6c
jl 0x5425a7
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x44]
mov esi, eax
add edi, 0xfffffffc
lea ebx, [ecx + 4]
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], edx
lea ecx, [esp + 0x54]
call fcn.00442960
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
fstp qword [esp + 0x24]
add ecx, edx
call fcn.00442960
fimul dword [esi]
mov eax, dword [ebx]
sub esp, 8
lea ecx, [esp + 0x5c]
fmul qword [eax]
fsubr qword [esp + 0x2c]
fstp qword [esp]
call fcn.00442900
lea ecx, [esp + 0x54]
call fcn.004429a0
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
fstp qword [esp + 0x24]
add ecx, edx
call fcn.004429a0
fimul dword [esi]
mov ecx, dword [ebx]
sub esp, 8
fmul qword [ecx]
lea ecx, [esp + 0x5c]
fsubr qword [esp + 0x2c]
fstp qword [esp]
call fcn.00442920
lea ecx, [esp + 0x54]
call fcn.004429e0
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
fstp qword [esp + 0x24]
add ecx, edx
call fcn.004429e0
fimul dword [esi]
mov edx, dword [ebx]
sub esp, 8
lea ecx, [esp + 0x5c]
fmul qword [edx]
fsubr qword [esp + 0x2c]
fstp qword [esp]
call fcn.00442940
push 0x3ff00000
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xa0]
call fcn.00533bd0
mov eax, dword [esp + 0x38]
mov byte [esp + 0xb0], 1
cmp eax, 0x5bab6c
mov dword [esp + 0xc], 1
jl 0x5424e5
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add eax, 0xffffffd8
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
lea esi, [ecx*8]
mov ecx, dword [esp + 0x14]
add ecx, edx
call fcn.00442960
mov eax, dword [ebx]
mov edx, esi
add edx, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x80]
fmul qword [edx]
fimul dword [eax]
fstp qword [esp + 0x1c]
call fcn.00442960
fadd qword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0x88]
fstp qword [esp]
call fcn.00442900
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
add ecx, eax
call fcn.004429a0
mov edx, dword [ebx]
mov ecx, esi
add ecx, edx
mov edx, dword [esp + 0x24]
fmul qword [ecx]
lea ecx, [esp + 0x80]
fimul dword [edx]
fstp qword [esp + 0x1c]
call fcn.004429a0
fadd qword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0x88]
fstp qword [esp]
call fcn.00442920
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
add ecx, edx
call fcn.004429e0
mov ecx, dword [ebx]
add esi, ecx
lea ecx, [esp + 0x80]
fmul qword [esi]
mov esi, dword [esp + 0x24]
fimul dword [esi]
fstp qword [esp + 0x1c]
call fcn.004429e0
fadd qword [esp + 0x1c]
sub esp, 8
lea ecx, [esp + 0x88]
fstp qword [esp]
call fcn.00442940
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc eax
add esi, 4
sub edx, 0x28
cmp eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
jle 0x5423ee
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x54]
call fcn.00442960
fstp qword [esp + 0x1c]
lea ecx, [esp + 0x80]
call fcn.00442960
fimul dword [esi]
sub esp, 8
lea ecx, [esp + 0x5c]
fsubr qword [esp + 0x24]
fstp qword [esp]
call fcn.00442900
lea ecx, [esp + 0x54]
call fcn.004429a0
fstp qword [esp + 0x1c]
lea ecx, [esp + 0x80]
call fcn.004429a0
fimul dword [esi]
sub esp, 8
lea ecx, [esp + 0x5c]
fsubr qword [esp + 0x24]
fstp qword [esp]
call fcn.00442920
lea ecx, [esp + 0x54]
call fcn.004429e0
fstp qword [esp + 0x1c]
lea ecx, [esp + 0x80]
call fcn.004429e0
fimul dword [esi]
sub esp, 8
lea ecx, [esp + 0x5c]
fsubr qword [esp + 0x24]
fstp qword [esp]
call fcn.00442940
lea ecx, [esp + 0x80]
mov byte [esp + 0xb0], 0
call fcn.00442d70
mov eax, dword [esp + 0x3c]
sub edi, 4
add ebx, 4
add esi, 4
dec eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], eax
jne 0x542308
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x54]
call fcn.00442960
mov ebx, dword [ebp + 0xc]
mov edx, dword [edi]
sub esp, 8
mov ecx, esi
mov eax, dword [ebx]
add ecx, edx
fdiv qword [eax]
fstp qword [esp]
call fcn.00442900
lea ecx, [esp + 0x54]
call fcn.004429a0
mov ecx, dword [ebx]
mov eax, dword [edi]
sub esp, 8
fdiv qword [ecx]
mov ecx, esi
add ecx, eax
fstp qword [esp]
call fcn.00442920
lea ecx, [esp + 0x54]
call fcn.004429e0
mov edx, dword [ebx]
sub esp, 8
mov ecx, esi
fdiv qword [edx]
add ecx, dword [edi]
fstp qword [esp]
call fcn.00442940
lea ecx, [esp + 0x54]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00442d70
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
inc eax
add ebx, 0x78
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], esi
jle 0x5421cd
mov eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x4c]
inc edx
dec eax
add esi, 0x78
add edi, 4
cmp edx, ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], edi
jle 0x5421a3
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret