Function at 0x409979
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c89b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], edi
call fcn.0040154a
lea ecx, [esp + 0x14]
mov dword [esp + 0x84], edi
call fcn.0040154a
lea ecx, [esp + 0x18]
call fcn.0040154a
lea esi, [esp + 0x30]
call fcn.0040a61e
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x88], 3
call fcn.0040ada5
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
call fcn.0040154a
mov esi, dword [ebp + 0x10]
push edi
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x8c], 5
mov ecx, dword [esi]
push 0x16
call fcn.0041b84b
push str.Location:_._n
lea eax, [esp + 0x34]
call fcn.0040a63a
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x10]
call fcn.00403884
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040a71d
test eax, eax
je 0x409a74
lea edi, [esp + 0x28]
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x50]
call fcn.0040ad71
push dword [esp + 0x1c]
lea ecx, [esp + 0x10]
call fcn.00401b2d
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403884
push eax
call fcn.0041b725
test eax, eax
jne 0x409abb
push 0x118
call fcn.0040157e
mov dword [esp + 0x28], eax
mov byte [esp + 0x84], 6
test eax, eax
je 0x409a9e
push 0x89
push 1
mov ecx, eax
call fcn.00404d1e
jmp 0x409aa0
xor eax, eax
mov byte [esp + 0x84], 5
mov dword [esp + 0x1c], eax
push 0x44b27c
lea eax, [esp + 0x20]
push eax
call fcn.00429bb6
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [esi]
test ecx, ecx
je 0x409acf
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx]
test ecx, ecx
je 0x409ae6
mov eax, dword [ecx]
push 1
call dword [eax + 4]
movzx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00403884
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004048cd
mov edi, dword [ebp + 0x14]
mov byte [esp + 0x84], 7
push dword [edi + 4]
mov ecx, eax
push dword [edi]
push dword [esp + 0x28]
call fcn.00403884
mov ecx, dword [ebp + 8]
push eax
call fcn.0041bc11
lea ecx, [esp + 0x1c]
mov dword [ebx], eax
mov byte [esp + 0x84], 5
call fcn.004015a7
push dword [edi + 8]
lea eax, [edi + 0x18]
push dword [edi + 0x14]
lea ecx, [esp + 0x20]
push eax
push 1
push dword [edi + 0x10]
call fcn.00403884
mov ecx, dword [ebx]
push eax
push dword [edi + 0xc]
call fcn.0041bc52
push str.Host:
lea ecx, [esp + 0x14]
mov dword [esi], eax
call fcn.00401b2d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0040a581
mov ecx, dword [esi]
push 0x10000000
lea eax, [esp + 0x14]
push eax
call fcn.0041b0b2
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.0041b6d3
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push eax
call fcn.0041aae5
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x10]
call fcn.004015a7
lea edi, [esp + 0x50]
call fcn.00409bfa
lea eax, [esp + 0x30]
call fcn.00409bf2
lea ecx, [esp + 0x18]
call fcn.004015a7
lea ecx, [esp + 0x14]
call fcn.004015a7
lea ecx, [esp + 0xc]
call fcn.004015a7
mov ecx, dword [esp + 0x7c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10