Function at 0x4016b0
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4041ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x590
mov eax, dword [0x407060]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x594], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x180], bx
mov ecx, 0x81
lea edi, [esp + 0x182]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x184]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4018bb
xor eax, eax
mov ecx, 0x45
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4018bb
mov eax, dword [esp + 0x6c]
cmp eax, 5
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
jne 0x40176a
cmp dword [esp + 0x70], 1
jne 0x4017a8
push str...WinSockLSP_xp.reg
lea edx, [esp + 0x184]
push edx
mov eax, edx
push eax
jmp 0x4017a6
cmp eax, 6
jne 0x4018bb
mov eax, dword [esp + 0x70]
cmp eax, ebx
jne 0x40178d
push str...WinSockLSP_vista.reg
lea ecx, [esp + 0x184]
push ecx
mov edx, ecx
push edx
jmp 0x4017a6
cmp eax, 1
jne 0x4018bb
push str...WinSockLSP_win7.reg
lea eax, [esp + 0x184]
push eax
mov ecx, eax
push ecx
call esi
mov word [esp + 0x388], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x38a]
rep stosd dword es:[edi], eax
push 0x104
lea edx, [esp + 0x38c]
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4018bb
push 0x405248
lea eax, [esp + 0x38c]
push eax
mov ecx, eax
push ecx
call esi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x388]
push 0x40526c
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x405220
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], 0x405254
mov dword [esp + 0x2c], edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x405250
lea ecx, [esp + 0x50]
mov dword [esp + 0x5a8], ebx
call dword [0x4050a4]
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x50]
call dword [0x4050a4]
push 0x405250
lea ecx, [esp + 0x50]
call dword [0x4050a4]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4018a6
mov edx, dword [esp + 0x48]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5a4], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x59c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x594]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403dfb
mov esp, ebp
pop ebp
ret