Function at 0x40caa0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4441d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x454100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebx]
mov dword [edi], ecx
test ecx, ecx
je 0x40caef
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x447370]
call esi
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
je 0x40cb14
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x447370]
call esi
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
test ecx, ecx
je 0x40cb32
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x447370]
call esi
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0xc], ecx
test ecx, ecx
je 0x40cb50
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x447370]
call esi
mov byte [ebp - 4], 7
lea ecx, [edi + 0x18]
movzx eax, byte [ebx + 0x10]
mov byte [edi + 0x10], al
movzx eax, byte [ebx + 0x11]
mov byte [edi + 0x11], al
movzx eax, byte [ebx + 0x12]
mov byte [edi + 0x12], al
movzx eax, byte [ebx + 0x13]
mov byte [edi + 0x13], al
movzx eax, byte [ebx + 0x14]
mov byte [edi + 0x14], al
movzx eax, byte [ebx + 0x15]
mov byte [edi + 0x15], al
movzx eax, byte [ebx + 0x16]
mov byte [edi + 0x16], al
movzx eax, byte [ebx + 0x17]
mov byte [edi + 0x17], al
lea eax, [ebx + 0x18]
push eax
call fcn.0041efc0
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 8
lea ecx, [edi + 0x24]
push eax
call fcn.0041efc0
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 9
lea ecx, [edi + 0x30]
push eax
call fcn.0041efc0
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x78]
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x5c]
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
movzx eax, byte [ebx + 0x60]
mov byte [edi + 0x60], al
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x6c]
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ecx
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x74]
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
movzx eax, byte [ebx + 0x78]
mov byte [esi], al
movzx eax, byte [ebx + 0x79]
mov byte [esi + 1], al
movzx eax, byte [ebx + 0x7a]
mov byte [esi + 2], al
movzx eax, byte [ebx + 0x7b]
mov byte [esi + 3], al
mov eax, dword [ebx + 0x7c]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x80]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x84]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x8c]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x90]
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x18]
push eax
call fcn.0041efc0
lea eax, [ebx + 0x9c]
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x24]
push eax
call fcn.0041efc0
mov byte [ebp - 4], 0xc
lea esi, [edi + 0xa8]
movzx eax, byte [ebx + 0xa8]
mov byte [esi], al
movzx eax, byte [ebx + 0xa9]
mov byte [esi + 1], al
movzx eax, byte [ebx + 0xaa]
mov byte [esi + 2], al
movzx eax, byte [ebx + 0xab]
mov byte [esi + 3], al
mov eax, dword [ebx + 0xac]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0xb0]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xb4]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xbc]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0xc0]
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x18]
push eax
mov dword [ebp - 0x14], esi
call fcn.0041efc0
lea eax, [ebx + 0xcc]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [esi + 0x24]
call fcn.0041efc0
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0xdc]
mov dword [edi + 0xd8], eax
mov eax, edi
mov dword [edi + 0xdc], 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