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

Disassembly:
push 0xffffffffffffffff
push 0x46e64b
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 [0x48f9e8]
mov dword [esp + 0x10], edi
test al, 1
jne 0x417414
or eax, 1
mov dword [0x48f9e8], eax
mov dword [esp + 0x560], 1
xor eax, eax
push 0x4745d0
mov dword [0x48f9e4], 7
mov dword [0x48f9e0], 0
mov word [0x48f9d0], ax
call fcn.0044c334
add esp, 4
mov byte [esp + 0x560], 0
xor eax, eax
cmp dword [0x48f9e0], eax
je 0x417452
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x48f9d0
mov word [edi], ax
call fcn.00403ac0
mov dword [esp + 0x560], 0
mov dword [esp + 0xc], 1
jmp 0x417681
push 0x40e
mov word [esp + 0x148], ax
lea eax, [esp + 0x14a]
push 0
push eax
call fcn.00451fb0
add esp, 0xc
mov dword [esp + 0x2c], 0x114
lea eax, [esp + 0x30]
push 0x110
push 0
push eax
call fcn.00451fb0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4174b7
cmp dword [esp + 0x30], 6
jb 0x4174b7
push 0x208
lea eax, [esp + 0x148]
push eax
push str._ProgramData_
jmp 0x4174c9
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 0x4174e0
cmp word [eax], 0
mov esi, 0x208
je 0x4174f3
add eax, 2
dec ecx
jne 0x4174e0
jmp 0x417515
test ecx, ecx
je 0x417515
push ecx
mov eax, esi
mov edx, esi
sub eax, ecx
push 0x47cc40
push ecx
lea ecx, [esp + 0x150]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00417330
mov ecx, esi
lea eax, [esp + 0x144]
mov edi, edi
cmp word [eax], 0
je 0x41752e
add eax, 2
dec ecx
jne 0x417520
jmp 0x417550
test ecx, ecx
je 0x417550
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.00417330
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 0x417597
xor ecx, ecx
jmp 0x4175b0
lea ecx, [esp + 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4175a1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403be0
mov dword [esp + 0x560], 2
lea ecx, [esp + 0x14]
push 5
push str.log_
call fcn.004039e0
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, 0x48f9d0
push eax
call fcn.004033e0
mov ecx, dword [0x48f9e0]
mov eax, dword [esp + 0x24]
mov dword [0x48f9e0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x48f9e4]
mov dword [0x48f9e4], 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 0x48f9d0
mov word [edi], ax
call fcn.00403ac0
mov dword [esp + 0xc], 1
mov byte [esp + 0x560], 0
cmp dword [esp + 0x28], 8
jb 0x41766a
push dword [esp + 0x14]
call fcn.0044baac
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.0044bab1
add esp, 0x558
ret