Function at 0x417190
Capabilities:
Check os version
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x46e39b
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x548], eax
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x558]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [0x48f9a8]
mov dword [esp + 0x10], edi
test al, 1
jne 0x417224
or eax, 1
mov dword [0x48f9a8], eax
mov dword [esp + 0x560], 1
xor eax, eax
push 0x474220
mov dword [0x48f9a4], 7
mov dword [0x48f9a0], 0
mov word [0x48f990], ax
call fcn.0044c064
add esp, 4
mov byte [esp + 0x560], 0
xor eax, eax
cmp dword [0x48f9a0], eax
je 0x417262
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x48f990
mov word [edi], ax
call fcn.00403a60
mov dword [esp + 0x560], 0
mov dword [esp + 0xc], 1
jmp 0x417491
push 0x40e
mov word [esp + 0x148], ax
lea eax, [esp + 0x14a]
push 0
push eax
call fcn.00451ce0
add esp, 0xc
mov dword [esp + 0x2c], 0x114
lea eax, [esp + 0x30]
push 0x110
push 0
push eax
call fcn.00451ce0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4172c7
cmp dword [esp + 0x30], 6
jb 0x4172c7
push 0x208
lea eax, [esp + 0x148]
push eax
push str._ProgramData_
jmp 0x4172d9
push 0x208
lea eax, [esp + 0x148]
push eax
push str._ALLUSERSPROFILE_Application_Data
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x208
lea eax, [esp + 0x144]
jmp 0x4172f0
cmp word [eax], 0
mov esi, 0x208
je 0x417303
add eax, 2
dec ecx
jne 0x4172f0
jmp 0x417325
test ecx, ecx
je 0x417325
push ecx
mov eax, esi
mov edx, esi
sub eax, ecx
push 0x47cba0
push ecx
lea ecx, [esp + 0x150]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00417140
mov ecx, esi
lea eax, [esp + 0x144]
mov edi, edi
cmp word [eax], 0
je 0x41733e
add eax, 2
dec ecx
jne 0x417330
jmp 0x417360
test ecx, ecx
je 0x417360
push ecx
mov eax, esi
sub eax, ecx
push str.2345PackStatService
push ecx
sub esi, eax
lea ecx, [esp + 0x150]
lea ecx, [ecx + eax*2]
mov edx, esi
call fcn.00417140
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x144]
push 0
push eax
call esi
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [esp + 0x144], ax
jne 0x4173a7
xor ecx, ecx
jmp 0x4173c0
lea ecx, [esp + 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4173b1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403b80
mov dword [esp + 0x560], 2
lea ecx, [esp + 0x14]
push 5
push str.log_
call fcn.00403980
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push eax
call esi
lea eax, [esp + 0x14]
mov ecx, 0x48f990
push eax
call fcn.00403380
mov ecx, dword [0x48f9a0]
mov eax, dword [esp + 0x24]
mov dword [0x48f9a0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x48f9a4]
mov dword [0x48f9a4], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [esp + 0x2c], ecx
mov ecx, edi
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x48f990
mov word [edi], ax
call fcn.00403a60
mov dword [esp + 0xc], 1
mov byte [esp + 0x560], 0
cmp dword [esp + 0x28], 8
jb 0x41747a
push dword [esp + 0x14]
call fcn.0044b7dc
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov eax, edi
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.0044b7e1
add esp, 0x558
ret