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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4531e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
lea ecx, [esi + 0x50]
mov dword [esi], 0x465dd8
call fcn.00417850
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x465cd8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
add ebx, esi
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0040b5f0
lea eax, [esi + 4]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x38], eax
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x30]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x45827c]
mov ecx, ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 5
push eax
call fcn.0041b7a0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov eax, 5
mov dword [ebp - 0x10], eax
and eax, 0xfffffffb
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x45827c]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x413e40
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x413e5e
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.0040b4b0
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x14]
push 8
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], 0x465d2c
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edx - 4], eax
lea ecx, [edx + 4]
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 4]
lea edi, [ecx + 0x28]
mov dword [ecx], 0x465d74
mov dword [ebp - 0x1c], eax
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.00434f30
push 1
mov esi, eax
call fcn.00433684
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0xc]
lea ecx, [eax + 0x18]
mov dword [eax + 0x38], esi
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov esi, eax
mov dword [eax + 0x14], edx
lea ebx, [esi + 0x28]
mov dword [eax + 0x20], ecx
lea eax, [esi + 0x1c]
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov esi, dword [ebp - 0x1c]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0x465d38
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 4
mov dword [ebp - 4], 0xffffffff
mov eax, 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