Function at 0x401160
Capabilities:
Check os version
Create process on windows
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550efe
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x5aa170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0040724e
push 0
call fcn.0040819b
add esp, 4
lea ecx, [ebp - 0x1c8]
push 0
push 0x68
push 0x66
call fcn.00410d6a
mov dword [ebp - 4], 0
mov dword [ebp - method.CDHtmlDialog.virtual_0], 0x585f8c
mov dword [ebp - method.CDHtmlEventSink.virtual_0], 0x585f60
mov word [ebp - 0x70], 0
call fcn.00415b4f
call fcn.00415b4f
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x1c8]
push 0
mov dword [ebp - 4], 1
push 0x66
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00408fb3
push 0
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 0x6f], 1
call fcn.0040e002
mov ecx, edi
call fcn.00401f90
mov ecx, edi
call fcn.00401cc0
lea eax, [edi + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40126d
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40129a
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4012c7
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x1e0]
cmp eax, 2
jne 0x40131e
push dword [edi + 0x1e8]
lea eax, [ebp - 0x18]
push str._sSetupArp.exe
push eax
call fcn.004039d0
add esp, 0xc
push 1
push dword [edi + 0x1e8]
mov edi, dword [ebp - 0x18]
push str._WaitVista
push edi
push 0
push dword [ebp - 0x1a8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401574
cmp eax, 5
jne 0x40132d
mov dword [edi + 0x1e0], 4
cmp dword [edi + 0x1e0], 3
jne 0x401349
cmp dword [edi + 0xd0], 6
jae 0x401349
mov dword [edi + 0x1e0], 0
push dword [edi + 0x1e8]
lea esi, [edi + 0x1e8]
lea eax, [ebp - 0x18]
push str._sSetup.exe
push eax
call fcn.004039d0
push dword [esi]
lea eax, [ebp - 0x14]
push str.SETUP_FOLDER_ROOT__s_
push eax
call fcn.004039d0
add esp, 0x18
lea ecx, [ebp - 0x24]
push esi
call fcn.004038e0
cmp dword [edi + 0x1e0], 4
jl 0x4013f0
mov ecx, edi
call fcn.00402420
test al, al
je 0x4013bb
push dword [edi + 0x1e4]
lea esi, [edi + 0x1e4]
lea eax, [ebp - 0x18]
push str._sSetup.exe
push eax
call fcn.004039d0
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.004038e0
jmp 0x4013d8
push dword [esi]
lea eax, [ebp - 0x14]
push str.SETUP_FOLDER_ROOT__s_
push eax
call fcn.004039d0
add esp, 0xc
mov dword [edi + 0x1e0], 0
cmp dword [edi + 0x1e0], 4
jne 0x4013f0
push 9
push str.__arpmode
lea ecx, [ebp - 0x14]
call fcn.00403620
cmp dword [edi + 0x1e0], 1
jl 0x401408
push 0x17
push str._USER_TOKEN_AVAILABLE1
lea ecx, [ebp - 0x14]
call fcn.00403620
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 1
push ebx
push esi
push edi
push 0
push dword [ebp - 0x1a8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x20], eax
call fcn.00410b77
cmp dword [ebp - 0x20], 0
jne 0x401467
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1e0], 1
jl 0x401574
call fcn.00401c40
call fcn.00401a30
mov ecx, dword [ebp - 0x1c]
call fcn.004016d0
jmp 0x401574
push edi
lea ecx, [ebp - 0x6c]
call fcn.00404b80
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.004055f0
mov byte [ebp - 4], 6
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4014a0
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
call fcn.00401610
mov byte [ebp - 4], 8
push dword [eax]
lea eax, [ebp - 0x1c]
push edi
push str._s_n_n_s
push eax
call fcn.004039d0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
add esp, 0x10
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4014f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
push 0x10
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c8]
push esi
call fcn.0040c3cd
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40152a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40154a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x68]
add edx, 0xfffffff0
mov dword [ebp - 0x6c], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401571
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401594
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4015b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4015cc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 0xffffffff
call fcn.00410ebd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529711
mov esp, ebp
pop ebp
ret