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

Disassembly:
push 0xffffffffffffffff
push 0x46e16b
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 0x416f94
or eax, 1
mov dword [0x48f9e8], eax
mov dword [esp + 0x560], 1
xor eax, eax
push 0x474100
mov dword [0x48f9e4], 7
mov dword [0x48f9e0], 0
mov word [0x48f9d0], ax
call fcn.0044bed4
add esp, 4
mov byte [esp + 0x560], 0
xor eax, eax
cmp dword [0x48f9e0], eax
je 0x416fd2
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 0x417201
push 0x40e
mov word [esp + 0x148], ax
lea eax, [esp + 0x14a]
push 0
push eax
call fcn.00451b50
add esp, 0xc
mov dword [esp + 0x2c], 0x114
lea eax, [esp + 0x30]
push 0x110
push 0
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x417037
cmp dword [esp + 0x30], 6
jb 0x417037
push 0x208
lea eax, [esp + 0x148]
push eax
push str._ProgramData_
jmp 0x417049
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 0x417060
cmp word [eax], 0
mov esi, 0x208
je 0x417073
add eax, 2
dec ecx
jne 0x417060
jmp 0x417095
test ecx, ecx
je 0x417095
push ecx
mov eax, esi
mov edx, esi
sub eax, ecx
push 0x47cbf0
push ecx
lea ecx, [esp + 0x150]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00416eb0
mov ecx, esi
lea eax, [esp + 0x144]
mov edi, edi
cmp word [eax], 0
je 0x4170ae
add eax, 2
dec ecx
jne 0x4170a0
jmp 0x4170d0
test ecx, ecx
je 0x4170d0
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.00416eb0
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 0x417117
xor ecx, ecx
jmp 0x417130
lea ecx, [esp + 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417121
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 0x4171ea
push dword [esp + 0x14]
call fcn.0044b63d
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.0044b642
add esp, 0x558
ret