Function at 0x4171c0
Capabilities:
Check os version
Extract resource via kernel32 functions
Get disk information
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c9c1
mov eax, dword fs:[0]
push eax
sub esp, 0x5d0
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x5a0], edi
mov esi, ecx
mov dword [ebp - 0x58c], esi
mov dword [ebp - 0x5a8], esi
mov dword [ebp - 0x5ac], esi
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x5a4], 0
call fcn.00403a20
mov dword [ebp - 4], 1
test edi, edi
jne 0x41726e
lea ecx, [ebp - 0x46c]
call fcn.00403b30
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403fc0
mov byte [ebp - 0x594], 0
lea eax, [ebp - 0x46c]
push dword [ebp - 0x594]
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403e50
jmp 0x417894
push str.Kernel32.dll
lea ecx, [ebp - 0x5dc]
call fcn.004039d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5dc]
push eax
call fcn.00420fc0
mov ecx, eax
call fcn.00421080
mov edi, eax
mov dword [ebp - 0x590], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5dc]
call fcn.00403930
push str.Psapi.dll
lea ecx, [ebp - 0x5c4]
call fcn.004039d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c4]
push eax
call fcn.00420fc0
mov ecx, eax
call fcn.00421080
mov dword [ebp - 0x59c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c4]
call fcn.00403930
cmp dword [ebp - 0x59c], 0
je 0x417854
test edi, edi
je 0x417854
push 0x118
lea eax, [ebp - 0x584]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
mov dword [ebp - 0x588], 0x11c
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41741e
cmp dword [ebp - 0x584], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
ja 0x417354
jne 0x4173d5
cmp dword [ebp - 0x580], 2
jb 0x4173d5
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x4173d5
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4173d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4173d5
movups xmm0, xmmword [0x48121c]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x48122c]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4173d5
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4173d5
cmp word [esi + 2], ax
jbe 0x4173d5
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x584], edx
mov dword [ebp - 0x580], ecx
mov dword [ebp - 0x57c], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov esi, eax
test esi, esi
je 0x417418
push 0x118
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call esi
mov edi, dword [ebp - 0x590]
cmp dword [ebp - 0x584], 6
jb 0x4174c3
push str.QueryFullProcessImageNameW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4174c3
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
mov dword [ebp - 0x448], 0x208
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x444]
push eax
push 0
push dword [ebp - 0x5a0]
call esi
test eax, eax
je 0x4174c3
mov eax, dword [ebp - 0x448]
cmp eax, 0x208
jae 0x4174a1
add eax, eax
cmp eax, 0x412
jae 0x4178ca
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea eax, [ebp - 0x444]
push eax
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00403c60
lea ecx, [ebp - 0x46c]
call fcn.00403b30
lea edi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x594], edi
test eax, eax
jne 0x41780b
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameW
push dword [ebp - 0x59c]
call eax
mov esi, eax
test esi, esi
jne 0x417510
push str.GetProcessImageFileNameW
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41757e
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
lea eax, [ebp - 0x444]
push 0x208
push eax
push dword [ebp - 0x5a0]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x41757e
add eax, eax
cmp eax, 0x412
jae 0x4178ca
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea eax, [ebp - 0x444]
push eax
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00403c60
mov eax, dword [edi]
test eax, eax
je 0x41776f
push 0x410
call fcn.00434fc5
push 0x410
mov edi, eax
push 0
push edi
call fcn.0044b5b0
xorps xmm0, xmm0
mov dword [ebp - 0x44c], 0
movq qword [ebp - 0x454], xmm0
add esp, 0x10
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x454]
call fcn.00420e30
mov esi, dword [ebp - 0x454]
xor ecx, ecx
mov dword [ebp - 0x598], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x450]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x417747
xor eax, eax
mov dword [ebp - 0x448], eax
nop dword [eax + eax]
add esi, eax
mov ecx, esi
mov dword [ebp - 0x5a8], esi
call fcn.00403b30
mov eax, dword [eax + 0x10]
cmp eax, 3
jb 0x41765e
mov ecx, esi
call fcn.00403b30
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x41764a
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x41765e
cmp edx, 8
jb 0x417658
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push edi
mov ecx, esi
call fcn.004038f0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x417679
mov word [edi], ax
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417680
sub esi, ecx
sar esi, 1
je 0x4176b5
mov eax, dword [ebp - 0x594]
cmp esi, dword [eax]
jae 0x4176b5
push esi
push edi
lea ecx, [ebp - 0x46c]
call fcn.004038f0
push eax
call fcn.00451753
add esp, 0xc
test eax, eax
je 0x4176f4
mov ecx, dword [ebp - 0x450]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x454]
sub ecx, esi
inc dword [ebp - 0x598]
add dword [ebp - 0x448], 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x598], eax
jae 0x417747
mov eax, dword [ebp - 0x448]
jmp 0x417620
lea ecx, [ebp - 0x28]
call fcn.00403a20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x46c]
call fcn.004038f0
mov ecx, dword [ebp - 0x5a8]
lea eax, [eax + esi*2]
push eax
call fcn.004038f0
push eax
lea eax, [ebp - 0x28]
push str._s_s
push eax
call fcn.00414390
add esp, 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x46c]
push eax
call fcn.004179e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00403930
push edi
call fcn.00434dc5
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.004091d0
mov ecx, dword [ebp - 0x594]
mov eax, dword [ecx]
test eax, eax
jne 0x41780b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExW
push dword [ebp - 0x59c]
call edi
mov esi, eax
test esi, esi
jne 0x41779b
push str.GetModuleFileNameExW
push dword [ebp - 0x590]
call edi
mov esi, eax
test esi, esi
je 0x41780b
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
lea eax, [ebp - 0x444]
push 0x208
push eax
push 0
push dword [ebp - 0x5a0]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x41780b
add eax, eax
cmp eax, 0x412
jae 0x4178ca
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea eax, [ebp - 0x444]
push eax
call fcn.00403f50
add esp, 4
lea ecx, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00403c60
lea edx, [ebp - 0x46c]
lea ecx, [ebp - 0x5c4]
call fcn.004164e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x46c]
push eax
call fcn.00403990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c4]
call fcn.00403930
lea ecx, [ebp - 0x46c]
call fcn.00403b30
push eax
call fcn.00403fb0
mov esi, dword [ebp - 0x58c]
jmp 0x417865
lea ecx, [ebp - 0x46c]
call fcn.00403b30
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403fc0
mov byte [ebp - 0x58c], 0
lea eax, [ebp - 0x46c]
push dword [ebp - 0x58c]
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403e50
mov dword [ebp - 0x5a4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x46c]
call fcn.00403930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret
call fcn.00434eeb
int3