Function at 0x401c30
Capabilities:
Access peb ldr_data
Check os version
Create process on windows
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x547a43
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x5ac1b8]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5ac1b8]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 8
push eax
mov dword [esp + 0x30], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00407e4a
push 0
call fcn.00408ce8
add esp, 4
lea ecx, [esp + 0x6c]
push 0
push 0x68
push 0x66
call fcn.00411870
mov dword [esp + 0x1e0], 0
mov dword [esp + 0x6c], vtable.CSetupARPDlg.0
mov dword [esp + method.CDHtmlEventSink.virtual_0], 0x58c028
mov word [esp + 0x1c8], 0
call fcn.00416676
call fcn.00416676
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x1c4], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x1e0], 1
push 0
push 0x66
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00409b21
push 0
lea ecx, [esp + 0x70]
mov byte [esp + 0x1cd], 1
call fcn.0040eb2b
mov ecx, edi
call fcn.00402af0
mov ecx, edi
call fcn.00402820
lea eax, [edi + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401d60
push 0x80004005
call fcn.00404d40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x1e0], 2
call fcn.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401d92
push 0x80004005
call fcn.00404d40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x1e0], 3
call fcn.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401dc4
push 0x80004005
call fcn.00404d40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1e0], 4
mov eax, dword [edi + 0x1e0]
cmp eax, 2
jne 0x401e23
push dword [edi + 0x1e8]
lea eax, [esp + 0x18]
push str._sSetupArp.exe
push eax
call fcn.00404540
add esp, 0xc
push 1
push dword [edi + 0x1e8]
mov edi, dword [esp + 0x1c]
push str._WaitVista
push edi
push 0
push dword [esp + 0xa0]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4020b6
cmp eax, 5
jne 0x401e32
mov dword [edi + 0x1e0], 4
cmp dword [edi + 0x1e0], 3
jne 0x401e4e
cmp dword [edi + 0xd0], 6
jae 0x401e4e
mov dword [edi + 0x1e0], 0
push dword [edi + 0x1e8]
lea esi, [edi + 0x1e8]
lea eax, [esp + 0x18]
push str._sSetup.exe
push eax
call fcn.00404540
add esp, 0xc
lea eax, [esp + 0x10]
push dword [esi]
push str.SETUP_FOLDER_ROOT__s_
push eax
call fcn.00404540
add esp, 0xc
lea ecx, [esp + 0x20]
push esi
call fcn.00404450
cmp dword [edi + 0x1e0], 4
jl 0x401eff
mov ecx, edi
call fcn.00402f80
test al, al
je 0x401ec8
push dword [edi + 0x1e4]
lea esi, [edi + 0x1e4]
lea eax, [esp + 0x18]
push str._sSetup.exe
push eax
call fcn.00404540
add esp, 0xc
lea ecx, [esp + 0x20]
push esi
call fcn.00404450
jmp 0x401ee6
push dword [esi]
lea eax, [esp + 0x14]
push str.SETUP_FOLDER_ROOT__s_
push eax
call fcn.00404540
add esp, 0xc
mov dword [edi + 0x1e0], 0
cmp dword [edi + 0x1e0], 4
jne 0x401eff
push 9
push str.__arpmode
lea ecx, [esp + 0x18]
call fcn.00404190
cmp dword [edi + 0x1e0], 1
jl 0x401f18
push 0x17
push str._USER_TOKEN_AVAILABLE1
lea ecx, [esp + 0x18]
call fcn.00404190
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 1
push ebx
push esi
push edi
push 0
push dword [esp + 0xa0]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], eax
call fcn.0041169f
cmp dword [esp + 0x1c], 0
jne 0x401f7d
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x1e0], 1
jl 0x4020b6
call fcn.004027a0
call fcn.00402590
mov ecx, dword [esp + 0x18]
call fcn.00402230
jmp 0x4020b6
push edi
lea ecx, [esp + 0x34]
call fcn.00405790
lea eax, [esp + 0x24]
mov byte [esp + 0x1e0], 5
push eax
lea ecx, [esp + 0x34]
call fcn.00406200
mov byte [esp + 0x1e0], 6
call fcn.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401fc1
push 0x80004005
call fcn.00404d40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1e0], 7
lea eax, [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call fcn.00402170
mov byte [esp + 0x1e0], 8
push dword [eax]
lea eax, [esp + 0x1c]
push edi
push str._s_n_n_s
push eax
call fcn.00404540
mov byte [esp + 0x1f0], 7
add esp, 0x10
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402028
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push 0x10
push dword [esp + 0x28]
push esi
call fcn.0040ce91
lea edx, [esi - 0x10]
mov byte [esp + 0x1e0], 6
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402060
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x1e0], 5
mov ecx, esi
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402085
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x1e0], 4
mov ecx, esi
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
mov dword [esp + 0x30], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4020b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x10]
lea edx, [ebx - 0x10]
mov byte [esp + 0x1e0], 3
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4020da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x1e0], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4020fb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x1e0], 1
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40211a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.004119cb
xor eax, eax
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0052f13d
mov esp, ebp
pop ebp
ret