Function at 0x40ed70
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ddf15
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x806d00]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x3c]
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.0040d5c0
mov ecx, dword [esi + 0x6c]
mov ebp, dword [0x6ad398]
push 0x20
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], 1
call ebp
mov ecx, dword [esi + 0x6c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [0x6ad39c]
push ebx
mov ecx, eax
mov dword [esp + 0x38], 1
call dword [0x6abb04]
lea ecx, [esp + 0x1c]
mov dword [edi + 8], eax
mov byte [esp + 0x34], bl
call dword [0x6abb5c]
mov ecx, dword [esi + 0x70]
push 0x20
call ebp
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x70]
call dword [0x6ad39c]
push ebx
mov ecx, eax
mov dword [esp + 0x38], 2
call dword [0x6abb04]
lea ecx, [esp + 0x1c]
mov dword [edi + 0xc], eax
mov byte [esp + 0x34], bl
call dword [0x6abb5c]
mov ecx, dword [esi + 0x74]
call dword [0x6ad35c]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x68]
push 0x20
call ebp
mov ecx, dword [esi + 0x68]
push eax
lea edx, [esp + 0x24]
push edx
call dword [0x6ad39c]
push ebx
mov ecx, eax
mov dword [esp + 0x38], 3
call dword [0x6abb04]
lea ecx, [esp + 0x1c]
mov dword [edi + 0x14], eax
mov byte [esp + 0x34], bl
call dword [0x6abb5c]
mov ecx, dword [esi + 0x7c]
call dword [0x6abfd4]
fstp qword [edi + 0x18]
mov ecx, dword [esi + 0x80]
call dword [0x6abfd4]
fstp qword [edi + 0x20]
mov ecx, dword [esi + 0x84]
call dword [0x6abfd4]
fstp qword [edi + 0x28]
mov ecx, dword [esi + 0x88]
call dword [0x6abfd4]
fstp qword [edi + 0x30]
mov ecx, dword [esi + 0x98]
call dword [0x6ad3b4]
mov byte [edi], al
mov ecx, dword [esi + 0x9c]
call dword [0x6ad3b4]
mov byte [edi + 1], al
mov ecx, dword [esi + 0xa0]
call dword [0x6ad3b4]
mov byte [edi + 2], al
mov ecx, dword [esi + 0x78]
push 0x20
call ebp
mov ecx, dword [esi + 0x78]
push eax
lea eax, [esp + 0x24]
push eax
call dword [0x6ad39c]
push ebx
mov ecx, eax
mov dword [esp + 0x38], 4
call dword [0x6abb04]
lea ecx, [esp + 0x1c]
mov dword [edi + 4], eax
mov byte [esp + 0x34], bl
call dword [0x6abb5c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x4c]
call fcn.0040a7d0
push eax
lea ecx, [edi + 0x38]
mov dword [esp + 0x38], 5
call dword [0x6abbac]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call dword [0x6abc18]
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x18]
push edx
call fcn.0040cd40
push eax
lea ecx, [edi + 0x3c]
mov dword [esp + 0x38], 6
call dword [0x6abbac]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call dword [0x6abc18]
mov ecx, dword [esi + 0xb0]
call fcn.0040eab0
mov dword [edi + 0x40], eax
mov ecx, dword [esi + 0xa4]
lea eax, [esp + 0x18]
push eax
call dword [0x6ad70c]
push eax
lea ecx, [edi + 0x44]
mov dword [esp + 0x38], 7
call dword [0x6abbac]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call dword [0x6abc18]
mov ecx, dword [esi + 0xa8]
call dword [0x6ad3b4]
mov byte [edi + 0x48], al
mov ecx, dword [esi + 0xb8]
call dword [0x6abf7c]
mov byte [edi + 0x49], al
mov ecx, dword [esi + 0xbc]
call dword [0x6ad35c]
mov dword [edi + 0x4c], eax
mov ecx, dword [esi + 0xc0]
call dword [0x6ad35c]
lea ecx, [esp + 0x18]
mov dword [edi + 0x50], eax
push ecx
mov ecx, dword [esi + 0x54]
call fcn.0040cd40
push eax
lea ecx, [edi + 0x54]
mov dword [esp + 0x38], 8
call dword [0x6abbac]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call dword [0x6abc18]
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0x18]
push edx
call dword [0x6ad70c]
push eax
lea ecx, [edi + 0x58]
mov dword [esp + 0x38], 9
call dword [0x6abbac]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call dword [0x6abc18]
mov ecx, dword [esi + 0xc8]
call dword [0x6ad3b4]
mov byte [edi + 0x5c], al
mov ecx, dword [esi + 0xd0]
call dword [0x6ad35c]
mov dword [edi + 0x60], eax
mov ecx, dword [esi + 0xd8]
push 0x20
call ebp
mov ecx, dword [esi + 0xd8]
push eax
lea eax, [esp + 0x24]
push eax
call dword [0x6ad39c]
push ebx
mov ecx, eax
mov dword [esp + 0x38], 0xa
call dword [0x6abb04]
lea ecx, [esp + 0x1c]
mov dword [edi + 0x64], eax
mov byte [esp + 0x34], bl
call dword [0x6abb5c]
mov ecx, dword [esi + 0xdc]
call dword [0x6ad3b4]
mov byte [edi + 0x68], al
mov ecx, dword [esi + 0xe4]
push 0x20
call ebp
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0xe4]
call dword [0x6ad39c]
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov dword [esp + 0x38], 0xb
call dword [0x6abb58]
push eax
lea ecx, [edi + 0x6c]
mov byte [esp + 0x38], 0xc
call dword [0x6abbac]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0xb
call dword [0x6abc18]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call dword [0x6abb5c]
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4