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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417e7c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.0040ad00
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x18]
push eax
call fcn.0040ad00
mov byte [ebp - 4], 1
lea esi, [ebx + 0x30]
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00416aa1
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 2
lea eax, [edi + 0x30]
push dword [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040e170
lea eax, [edi + 0x38]
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x38]
push eax
call fcn.0040ad00
lea eax, [edi + 0x50]
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x50]
push eax
call fcn.0040ad00
mov byte [ebp - 4], 5
lea ecx, [ebx + 0x6c]
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x68], eax
lea eax, [edi + 0x6c]
push eax
call fcn.0040ad00
lea eax, [edi + 0x84]
mov byte [ebp - 4], 6
lea ecx, [ebx + 0x84]
push eax
call fcn.0040ad00
mov byte [ebp - 4], 7
lea esi, [ebx + 0x9c]
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00416aa1
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 8
lea eax, [edi + 0x9c]
push dword [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040e170
mov byte [ebp - 4], 9
lea esi, [ebx + 0xa4]
push 0x88
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00416aa1
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 0xa
lea eax, [edi + 0xa4]
push dword [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040e0f0
mov byte [ebp - 4], 0xb
lea ecx, [ebx + 0xac]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [edi + 0xb0]
mov esi, dword [edi + 0xac]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x405bab
sub eax, esi
sar eax, 3
push eax
call fcn.0040b070
mov ecx, dword [ebx + 0xac]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add esi, 8
mov dword [ecx + 4], eax
add ecx, 8
cmp esi, edx
jne 0x405b91
mov dword [ebx + 0xb0], ecx
mov byte [ebp - 4], 0xc
mov eax, dword [edi + 0xb8]
mov dword [ebx + 0xb8], eax
mov al, byte [edi + 0xbc]
mov byte [ebx + 0xbc], al
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xc8], 0
mov eax, dword [edi + 0xc4]
mov esi, dword [edi + 0xc0]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x405c56
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
push edi
call fcn.0040b3c0
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov dword [ebx + 0xc0], ecx
lea eax, [edi + edi*2]
mov dword [ebx + 0xc4], ecx
lea eax, [ecx + eax*4]
mov dword [ebx + 0xc8], eax
mov ecx, dword [ebx + 0xc0]
movq xmm0, qword [esi]
movq qword [ecx], xmm0
mov eax, dword [esi + 8]
add esi, 0xc
mov dword [ecx + 8], eax
add ecx, 0xc
cmp esi, edx
jne 0x405c35
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0xc4], ecx
movq xmm0, qword [edi + 0xcc]
movq qword [ebx + 0xcc], xmm0
mov eax, dword [edi + 0xd4]
mov dword [ebx + 0xd4], eax
movq xmm0, qword [edi + 0xd8]
movq qword [ebx + 0xd8], xmm0
mov eax, dword [edi + 0xe0]
mov dword [ebx + 0xe0], eax
movq xmm0, qword [edi + 0xe4]
movq qword [ebx + 0xe4], xmm0
mov eax, dword [edi + 0xec]
mov dword [ebx + 0xec], eax
lea esi, [ebx + 0xf0]
mov dword [esi + 0x24], 0
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 0x114]
test ecx, ecx
je 0x405cd0
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea esi, [ebx + 0x118]
mov dword [esi + 0x24], 0
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x10
mov ecx, dword [edi + 0x13c]
test ecx, ecx
je 0x405cf6
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea esi, [ebx + 0x140]
mov dword [esi + 0x24], 0
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x12
mov ecx, dword [edi + 0x164]
test ecx, ecx
je 0x405d1c
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x168]
lea esi, [ebx + 0x170]
mov dword [ebx + 0x168], eax
mov eax, dword [edi + 0x16c]
mov dword [ebx + 0x16c], eax
mov dword [ebp - 0x10], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 0x14
mov ecx, dword [edi + 0x194]
test ecx, ecx
je 0x405d5a
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov cl, byte [edi + 0x198]
mov eax, ebx
mov byte [ebx + 0x198], cl
mov ecx, dword [edi + 0x19c]
mov dword [ebx + 0x19c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4