Function at 0x40e790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x456ae3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
call fcn.0040ba10
push 0x40813000
push 0
mov eax, 5
lea esi, [edi + 0x1a8]
push 0x4070e000
mov dword [edi + 0x3f0], eax
mov dword [edi + 0x348], eax
mov eax, dword [esi]
push 0
mov ecx, esi
mov dword [esp + 0x4c], 0
mov dword [edi], 0x45b4e0
mov dword [edi + 0x210], 0
mov dword [edi + 0x214], 0x40200000
call dword [eax + 8]
push 0x3ff00000
push 0
mov ecx, esi
call fcn.0041ddd0
push 0
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
sub esp, 0x10
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov eax, esp
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
mov dword [esp + 0x48], 0xc0e00000
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
push 0xc0490000
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
push 0
mov dword [esp + 0x58], 0xc0e00000
mov ecx, dword [esp + 0x58]
push 0x4070e000
mov dword [eax + 0xc], ecx
push 0
mov ecx, esi
call dword [edx + 0xc]
push 0x3ff00000
push 0
mov ecx, esi
call fcn.0041ddd0
mov edx, dword [esi]
push 0
sub esp, 0x10
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc0e00000
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xc0e00000
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
push 0x40668000
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
push 0
push 0x4077c000
mov dword [eax + 0xc], ecx
push 0
mov ecx, esi
call dword [edx + 0xc]
push 0x3ff00000
push 0
mov ecx, esi
call fcn.0041ddd0
push 0
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov dword [esp + 0x38], 0x40590000
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
sub esp, 0x10
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, esp
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov dword [esp + 0x38], 0x40490000
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
push 0x406e0000
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
push 0
mov dword [esp + 0x48], 0x4062c000
mov ecx, dword [esp + 0x48]
push 0x40854000
mov dword [eax + 0xc], ecx
push 0
mov ecx, esi
call dword [edx + 0xc]
push 0x3ff00000
push 0
mov ecx, esi
call fcn.0041ddd0
push 0x98
call fcn.00449098
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x3c], 1
je 0x40ea44
mov edx, dword [0x477958]
mov ecx, dword [edx + 0x8d4]
push ecx
push 0x406e0000
push 0
push 0x40740000
push 0
mov ecx, eax
call fcn.00422220
jmp 0x40ea46
xor eax, eax
push eax
lea ecx, [edi + 0x10]
call fcn.00401210
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret