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

Disassembly:
push 0xffffffffffffffff
push 0x472e5b
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x548], eax
push esi
push edi
mov eax, dword [0x49274c]
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 [0x495998]
mov dword [esp + 0x10], edi
test al, 1
jne 0x41b2d4
or eax, 1
mov dword [0x495998], eax
mov dword [esp + 0x560], 1
xor eax, eax
push 0x478e00
mov dword [0x495994], 7
mov dword [0x495990], 0
mov word [0x495980], ax
call fcn.00450ef2
add esp, 4
mov byte [esp + 0x560], 0
xor eax, eax
cmp dword [0x495990], eax
je 0x41b312
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x495980
mov word [edi], ax
call fcn.00406750
mov dword [esp + 0x560], 0
mov dword [esp + 0xc], 1
jmp 0x41b541
push 0x40e
mov word [esp + 0x148], ax
lea eax, [esp + 0x14a]
push 0
push eax
call fcn.00455ee0
add esp, 0xc
mov dword [esp + 0x2c], 0x114
lea eax, [esp + 0x30]
push 0x110
push 0
push eax
call fcn.00455ee0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41b377
cmp dword [esp + 0x30], 6
jb 0x41b377
push 0x208
lea eax, [esp + 0x148]
push eax
push str._ProgramData_
jmp 0x41b389
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 0x41b3a0
cmp word [eax], 0
mov esi, 0x208
je 0x41b3b3
add eax, 2
dec ecx
jne 0x41b3a0
jmp 0x41b3d5
test ecx, ecx
je 0x41b3d5
push ecx
mov eax, esi
mov edx, esi
sub eax, ecx
push 0x48110c
push ecx
lea ecx, [esp + 0x150]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0041b1f0
mov ecx, esi
lea eax, [esp + 0x144]
mov edi, edi
cmp word [eax], 0
je 0x41b3ee
add eax, 2
dec ecx
jne 0x41b3e0
jmp 0x41b410
test ecx, ecx
je 0x41b410
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.0041b1f0
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 0x41b457
xor ecx, ecx
jmp 0x41b470
lea ecx, [esp + 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b461
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x1c]
call fcn.004073e0
mov dword [esp + 0x560], 2
lea ecx, [esp + 0x14]
push 5
push str.log_
call fcn.00406670
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, 0x495980
push eax
call fcn.004167c0
mov ecx, dword [0x495990]
mov eax, dword [esp + 0x24]
mov dword [0x495990], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x495994]
mov dword [0x495994], 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 0x495980
mov word [edi], ax
call fcn.00406750
mov dword [esp + 0xc], 1
mov byte [esp + 0x560], 0
cmp dword [esp + 0x28], 8
jb 0x41b52a
push dword [esp + 0x14]
call fcn.0044fd7a
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.0044fd7f
add esp, 0x558
ret