Function at 0x5057c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b40e0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push esi
push edi
mov eax, dword [0x6244f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x1c]
test esi, esi
jne 0x50582c
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov edx, dword [edi]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cvtsi2ss xmm0, dword [ebp + 0x10]
lea ecx, [ebp - 0xa8]
fild dword [ebp + 8]
movss dword [ebp - 0x14], xmm0
cvtsi2ss xmm0, dword [ebp + 0x14]
fstp dword [ebp - 0x1c]
fild dword [ebp + 0xc]
movss dword [ebp - 0x18], xmm0
fstp dword [ebp + 0x1c]
call fcn.004c8280
fld dword [ebp + 0x1c]
lea ecx, [ebp - 0xa8]
fst qword [ebp - 0x24]
fld qword [esi]
sub esp, 8
fstp dword [ebp - 0x10]
fadd dword [ebp - 0x10]
mov dword [ebp - 4], 0
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp + 4]
fld dword [ebp - 0x1c]
fstp dword [esp]
call fcn.004c8840
fld dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
fld st(0)
sub esp, 0x10
fst qword [ebp - 0x4c]
fld dword [ebp + 0x1c]
fst dword [esp + 0xc]
fld qword [esi + 8]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
faddp st(2)
fxch st(1)
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.004c8880
fld dword [ebp - 0x14]
lea ecx, [ebp - 0xa8]
fst qword [ebp - 0x44]
fld dword [ebp + 0x1c]
sub esp, 8
fstp dword [esp + 4]
fld qword [esi + 0x10]
fstp dword [ebp - 0x10]
fsub dword [ebp - 0x10]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp]
call fcn.004c97d0
fld qword [esi + 0x18]
lea ecx, [ebp - 0xa8]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
sub esp, 0x10
fadd qword [ebp - 0x24]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp + 0xc]
fld dword [ebp - 0x14]
fst dword [esp + 8]
fld dword [ebp + 0x1c]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.004c8880
fld dword [ebp - 0x18]
sub esp, 8
fst qword [ebp - 0x24]
fld qword [esi + 0x20]
fstp dword [ebp + 0x1c]
fsub dword [ebp + 0x1c]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
fstp dword [esp + 4]
fld dword [ebp - 0x14]
lea ecx, [ebp - 0xa8]
fstp dword [esp]
call fcn.004c97d0
fld dword [ebp - 0x18]
lea ecx, [ebp - 0xa8]
sub esp, 0x10
fst dword [esp + 0xc]
fld qword [esi + 0x28]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
fsubr qword [ebp - 0x44]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [ebp - 0x14]
fstp dword [esp]
call fcn.004c8880
fld dword [ebp - 0x18]
lea ecx, [ebp - 0xa8]
sub esp, 8
fstp dword [esp + 4]
fld qword [esi + 0x30]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
fadd qword [ebp - 0x4c]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
fstp dword [esp]
call fcn.004c97d0
fld qword [esi + 0x38]
lea ecx, [ebp - 0xa8]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
sub esp, 0x10
fsubr qword [ebp - 0x24]
fstp dword [ebp + 0x1c]
fld dword [ebp + 0x1c]
fstp dword [esp + 0xc]
fld dword [ebp - 0x1c]
fst dword [esp + 8]
fld dword [ebp - 0x18]
fstp dword [esp + 4]
fstp dword [esp]
call fcn.004c8880
lea ecx, [ebp - 0xa8]
call fcn.004c8970
lea ecx, [ebp - 0xa8]
call fcn.004c8d50
push dword [ebp + 0x18]
mov esi, eax
mov ecx, edi
xor eax, eax
mov dword [esi + 0x34], 4
mov edx, dword [edi]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [edx + 0x20]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [ebp - 0x80]
call fcn.004c84a0
lea ecx, [ebp - 0x94]
call fcn.004c84c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18