Function at 0x40cb10
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ce9
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0046b7c4
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CAppCommandLineInfo.0
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cb64
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 1
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cb91
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 2
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cbbe
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 3
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cbeb
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x5c], eax
mov byte [ebp - 4], 4
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cc18
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x64], eax
mov byte [ebp - 4], 5
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cc45
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x68], eax
mov byte [ebp - 4], 6
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cc72
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x70], eax
mov byte [ebp - 4], 7
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cc9f
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x78], eax
mov byte [ebp - 4], 8
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cccc
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7c], eax
mov byte [ebp - 4], 9
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40ccf9
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x84], eax
mov byte [ebp - 4], 0xa
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cd29
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x88], eax
mov byte [ebp - 4], 0xb
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cd59
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x8c], eax
mov byte [ebp - 4], 0xc
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cd89
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa0], eax
mov byte [ebp - 4], 0xd
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cdb9
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb4], eax
mov byte [ebp - 4], 0xe
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40cde9
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xbc], eax
mov byte [ebp - 4], 0xf
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40ce19
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc0], eax
lea ebx, [esi + 0xc8]
mov ecx, ebx
mov byte [ebp - 4], 0x10
call fcn.0046bbb6
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 0x11
call fcn.0046bbb6
push edi
push 0x5b95a8
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 0x12
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x28]
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x2c]
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x70]
mov dword [esi + 0xf0], edi
mov dword [esi + 0x34], edi
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x68]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x30]
mov dword [esi + 0x6c], 1
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x78]
mov dword [esi + 0x48], SysStringLen
mov dword [esi + 0x74], edi
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x7c]
call fcn.00401e90
push 0xffffffffffffffff
push edi
mov ecx, ebx
mov dword [esi + 0x80], edi
call fcn.0046bc37
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0xdc]
call fcn.0046bc37
push edi
push 0x5b95a8
lea ecx, [esi + 0x84]
call fcn.00401e90
push edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
push 0x5b95a8
lea ecx, [esi + 0x88]
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0x8c]
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0xa0]
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0xb4]
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0xbc]
mov dword [esi + 0xb8], 0xffff
call fcn.00401e90
push edi
push 0x5b95a8
lea ecx, [esi + 0xc0]
call fcn.00401e90
mov dword [esi + 0xc4], edi
mov eax, esi
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