Function at 0x584050
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x3c0
mov esi, esp
mov dword [esi + 0x3a8], ebp
mov dword [esi + 0x3ac], esp
mov dword [esi + 0x3b8], 0xffffffff
mov dword [esi + 0x3b4], 0x704da0
mov ebx, ecx
lea eax, [esi + 0x3b0]
mov edi, edx
mov ecx, dword fs:[0]
mov dword [esi + 0x3b0], ecx
mov dword fs:[0], eax
movsd xmm0, qword [edx]
movaps xmmword [esi + 0x10], xmm0
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x5840c9
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x58437b
mov dword [0x919820], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x58437b
movaps xmm0, xmmword [esi + 0x10]
mov edx, dword [ebp + 8]
lea ecx, [esi + 0x238]
movlps qword [eax], xmm0
push 0x74384c
push eax
call fcn.00580040
add esp, 8
mov eax, dword [esi + 0x26c]
lock dec dword [eax]
jne 0x584110
mov ecx, dword [esi + 0x26c]
call fcn.0057ee90
movss xmm0, dword [0x7259dc]
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x238]
lea edx, [esi + 0xc8]
movlps qword [esi + 0xc8], xmm0
mov byte [esi + 0xd0], 2
push dword [ebp + 8]
call fcn.00558f10
add esp, 4
mov eax, dword [esi + 0x26c]
lock dec dword [eax]
jne 0x584156
mov ecx, dword [esi + 0x26c]
call fcn.0057ee90
movaps xmm0, xmmword [0x725c70]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa0], 0
movups xmmword [esi + 0xa8], xmm0
mov dword [esi + 0xb8], pe_nt_image_headers32
mov byte [esi + 0xbc], 0
mov dword [esi + 0xbd], 0x1010101
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 0x14]
movss xmm0, dword [eax]
mov eax, ebx
mov dword [esi + 0x10], ecx
sub eax, ecx
shr eax, 2
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
addss xmm0, dword [0x7259dc]
mov eax, dword [eax + 0x100]
movsd xmm1, qword [eax + 0x3c]
movsd qword [esi + 0x50], xmm1
shufps xmm1, xmm1, 0x55
addss xmm1, xmm0
movss dword [esi + 0x3c], xmm1
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x58420f
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x58438c
mov dword [0x919820], eax
push 0x18
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x58438c
lea ecx, [esi + 0x3c]
lea edx, [esi + 0x88]
mov dword [eax], ecx
lea ecx, [esi + 0x38]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], edi
mov byte [esi + 0xe], 1
mov dword [esi + 0x3b8], 0
lea ecx, [esi + 0xc8]
push dword [ebp + 8]
call fcn.00539570
add esp, 4
movsd xmm0, qword [esi + 0x210]
mov eax, dword [esi + 0x200]
movss xmm1, dword [esi + 0x22c]
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0xf0]
mov dword [esi + 0x3b8], 2
movsd qword [esi + 0x40], xmm0
movsd xmm0, qword [esi + 0x218]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x204]
movsd qword [esi + 0x48], xmm0
movss xmm0, dword [esi + 0x224]
mov dword [esi + 0x2c], eax
call fcn.00585cf0
push dword [esi + 0x10]
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
push 0x170
lea eax, [esi + 0xc8]
push eax
lea edi, [esi + 0x238]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + 0xf], 0
mov dword [esi + 0x3b8], 1
lea ecx, [esi + 0x58]
mov edx, edi
push dword [ebp + 8]
call fcn.0053c170
add esp, 4
movsd xmm0, qword [esi + 0x80]
mov eax, dword [esi + 0x34]
movsd xmm1, qword [esi + 0x68]
mov ecx, dword [esi + 0x2c]
movsd xmm2, qword [esi + 0x40]
movsd qword [eax + 0x20], xmm0
movsd xmm0, qword [esi + 0x78]
movsd qword [eax + 8], xmm1
movsd xmm1, qword [esi + 0x48]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [esi + 0x70]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esi + 0x60]
movsd qword [eax], xmm0
mov dword [eax + 0x2c], ecx
mov ecx, dword [esi + 0x30]
movsd xmm0, qword [esi + 0x58]
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x3b0]
movsd qword [eax + 0x30], xmm0
movsd qword [eax + 0x40], xmm1
movsd qword [eax + 0x38], xmm2
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
call fcn.00709d20
ud2
mov ecx, 4
mov edx, 0x18
call fcn.00709d20
ud2