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

Disassembly:
push 0xffffffffffffffff
push 0x4aed8b
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x4df5dc]
xor eax, esp
mov dword [esp + 0x548], eax
push esi
push edi
mov eax, dword [0x4df5dc]
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 [0x4e28f8]
mov dword [esp + 0x10], edi
test al, 1
jne 0x4108f4
or eax, 1
mov dword [0x4e28f8], eax
mov dword [esp + 0x560], 1
xor eax, eax
push 0x4bd9d0
mov dword [0x4e28f4], 7
mov dword [0x4e28f0], 0
mov word [0x4e28e0], ax
call fcn.0048e01f
add esp, 4
mov byte [esp + 0x560], 0
xor eax, eax
cmp dword [0x4e28f0], eax
je 0x410932
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x4e28e0
mov word [edi], ax
call fcn.00402030
mov dword [esp + 0x560], 0
mov dword [esp + 0xc], 1
jmp 0x410b61
push 0x40e
mov word [esp + 0x148], ax
lea eax, [esp + 0x14a]
push 0
push eax
call fcn.00492dc0
add esp, 0xc
mov dword [esp + 0x2c], 0x114
lea eax, [esp + 0x30]
push 0x110
push 0
push eax
call fcn.00492dc0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410997
cmp dword [esp + 0x30], 6
jb 0x410997
push 0x208
lea eax, [esp + 0x148]
push eax
push 0x4c5930
jmp 0x4109a9
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 0x4109c0
cmp word [eax], 0
mov esi, 0x208
je 0x4109d3
add eax, 2
dec ecx
jne 0x4109c0
jmp 0x4109f5
test ecx, ecx
je 0x4109f5
push ecx
mov eax, esi
mov edx, esi
sub eax, ecx
push 0x4c592c
push ecx
lea ecx, [esp + 0x150]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00410810
mov ecx, esi
lea eax, [esp + 0x144]
mov edi, edi
cmp word [eax], 0
je 0x410a0e
add eax, 2
dec ecx
jne 0x410a00
jmp 0x410a30
test ecx, ecx
je 0x410a30
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.00410810
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 0x410a77
xor ecx, ecx
jmp 0x410a90
lea ecx, [esp + 0x144]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410a81
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x1c]
call fcn.004024f0
mov dword [esp + 0x560], 2
lea ecx, [esp + 0x14]
push 5
push str.log_
call fcn.0040a280
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, 0x4e28e0
push eax
call fcn.004117f0
mov ecx, dword [0x4e28f0]
mov eax, dword [esp + 0x24]
mov dword [0x4e28f0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x4e28f4]
mov dword [0x4e28f4], 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 0x4e28e0
mov word [edi], ax
call fcn.00402030
mov dword [esp + 0xc], 1
mov byte [esp + 0x560], 0
cmp dword [esp + 0x28], 8
jb 0x410b4a
push dword [esp + 0x14]
call fcn.0048e056
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.0048d894
add esp, 0x558
ret