Function at 0x404560
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, esp
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc4], esp
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xcc], 0x41faf0
mov edi, dword [ebp + 8]
mov dword [esi + 8], ecx
lea ecx, [esi + 0xc8]
mov eax, dword fs:[0]
mov dword [esi + 0xc8], eax
mov dword fs:[0], ecx
lea ecx, [esi + 0x80]
push 1
push 0x4319eb
push edi
call fcn.00408b10
add esp, 0xc
movsd xmm1, qword [esi + 0xb0]
movsd xmm2, qword [esi + 0xa8]
movsd xmm0, qword [esi + 0xb8]
lea ecx, [esi + 0xc]
lea edx, [esi + 0x30]
movsd qword [esi + 0x60], xmm1
movsd xmm1, qword [esi + 0xa0]
movsd qword [esi + 0x58], xmm2
movsd xmm2, qword [esi + 0x98]
movsd qword [esi + 0x68], xmm0
movsd qword [esi + 0x50], xmm1
movsd xmm1, qword [esi + 0x90]
movsd qword [esi + 0x48], xmm2
movsd xmm2, qword [esi + 0x80]
movsd qword [esi + 0x40], xmm1
movsd xmm1, qword [esi + 0x88]
movsd qword [esi + 0x30], xmm2
movsd qword [esi + 0x38], xmm1
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], edi
mov word [esi + 0x78], 1
call fcn.0040a920
cmp dword [esi + 0x14], 0
je 0x4047ef
mov edi, dword [esi + 0xc]
cmp dword [esi + 0x10], 0
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [esi + 4], eax
je 0x404672
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
call fcn.0040bba0
test eax, eax
je 0x4046c4
mov edi, eax
lea ecx, [esi + 0xc]
mov edx, eax
push 7
push 0x43109b
call fcn.0040bde0
add esp, 8
cmp dword [esi + 0xc], 1
jne 0x404724
mov eax, dword [esi + 0x10]
movsd xmm0, qword [esi + 0x14]
test eax, eax
movsd qword [esi + 0x30], xmm0
je 0x404765
mov ecx, dword [esi + 8]
movsd xmm0, qword [esi + 0x30]
mov dword [ecx], eax
movsd qword [ecx + 4], xmm0
jmp 0x4047db
call sub.KERNEL32.dll_GetProcessHeap
push 0x1a
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x404802
movzx ecx, word [0x431042]
movsd xmm0, qword [0x43103a]
movsd xmm2, qword [0x431032]
movsd xmm1, qword [0x43102a]
mov word [eax + 0x18], cx
mov ecx, dword [esi + 8]
movsd qword [eax + 0x10], xmm0
movsd qword [eax + 8], xmm2
movsd qword [eax], xmm1
mov dword [ecx], eax
mov dword [ecx + 4], 0x1a
mov dword [ecx + 8], 0x1a
jmp 0x4047db
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x80]
mov edx, edi
mov dword [esi + 0x20], eax
push 0xc
push 0x4310a2
call fcn.0040bde0
add esp, 8
cmp dword [esi + 0x80], 1
jne 0x404771
mov eax, dword [esi + 0x84]
movsd xmm0, qword [esi + 0x88]
test eax, eax
movsd qword [esi + 0x30], xmm0
jne 0x4046b0
mov ecx, 0x43135c
call fcn.00407330
ud2
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x84]
lea edx, [esi + 0x30]
add ebx, ecx
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x34], ebx
mov word [esi + 0x38], 0
mov dword [esi + 0x3c], 1
mov byte [esi + 0x40], 0
call fcn.0040b3d0
mov eax, dword [esi + 0x24]
mov dword [esi + 0xd0], 0
mov dword [esi + 4], eax
push eax
call dword [esi + 0x20]
push dword [esi + 4]
call dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
cmp dword [esi + 0x28], 0
mov dword [eax], 0
je 0x4047db
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0xc8]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x42f298
xor edx, edx
push 0
call fcn.00406dd0
add esp, 4
ud2
mov ecx, 0x1a
mov edx, 1
call fcn.00404cd0
ud2