Function at 0x540390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a689b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
lea ecx, [esp + 0x60]
call fcn.00442a20
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push esi
push edx
mov dword [esp + 0x284], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0053f360
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov edi, eax
lea eax, [esp + 0x18c]
push eax
push ebx
push esi
push ecx
push edx
push edi
call fcn.0053f440
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push ebx
push eax
call fcn.0053f360
mov edx, dword [ebp + 0x1c]
add esp, 0x40
lea ecx, [esp + 0x88]
mov dword [esp + 0xc], eax
push ecx
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 0x2c]
push ebx
push ecx
push edx
push eax
call fcn.0053f440
add esp, 0x18
sub edi, esi
test ebx, ebx
mov dword [esp + 0x50], edi
jl 0x5405a5
mov ecx, dword [esp + 0xc]
lea edx, [ebx + ebx*4]
shl edx, 3
lea ecx, [ecx + ecx*4]
lea edi, [esp + 0x88]
shl ecx, 3
inc ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], 0
sub eax, edx
mov dword [esp + 0x40], 0
add eax, ecx
mov dword [esp + 0x44], 0
test esi, esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], eax
jl 0x540558
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x50]
inc esi
lea edi, [esp + 0x178]
lea ebx, [ecx + edx*4]
mov dword [esp + 0x2c], esi
mov esi, dword [ebx]
mov eax, dword [esp + 0x54]
add esi, eax
mov ecx, esi
call fcn.00442960
fmul qword [edi]
mov ecx, esi
fadd qword [esp + 0x3c]
fstp qword [esp + 0x3c]
call fcn.004429a0
fmul qword [edi]
mov ecx, esi
fadd qword [esp + 0x44]
fstp qword [esp + 0x44]
call fcn.004429e0
fmul qword [edi]
mov eax, dword [esp + 0x2c]
add ebx, 4
add edi, 8
dec eax
fadd qword [esp + 0x34]
mov dword [esp + 0x2c], eax
fstp qword [esp + 0x34]
jne 0x5404fd
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
fld qword [esp + 0x3c]
fmul qword [edi]
mov eax, dword [esp + 0x10]
add edi, 8
add eax, 0x28
mov dword [esp + 0x30], edi
fadd qword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
fstp qword [esp + 0x24]
fld qword [esp + 0x44]
fmul qword [edi - 8]
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x34]
fmul qword [edi - 8]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
jne 0x5404a7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0x3ff00000
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [ebp + 0x34]
push edx
call fcn.00442f00
lea ecx, [esp + 0x60]
mov dword [esp + 0x270], 0xffffffff
call fcn.00442d70
mov ecx, dword [esp + 0x268]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret