Function at 0x41afb0
Capabilities:
Check os version
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x46ebf2
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x5cc], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x5e4]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [0x48fb2c]
mov dword [esp + 0x30], esi
test cl, 1
jne 0x41b054
or ecx, 1
mov dword [0x48fb2c], ecx
mov dword [esp + 0x5ec], 1
push 0x18
mov dword [0x48fb30], 0
call fcn.0044c16f
add esp, 4
mov dword [0x48fb30], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x474270
call fcn.0044bed4
add esp, 4
mov byte [esp + 0x5ec], 0
mov ecx, dword [0x48fb2c]
mov eax, dword [0x48fb30]
mov dword [esp + 0x50], 0x48fb30
test eax, eax
je 0x41b072
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x48fb2c]
mov dword [esp + 0x5ec], 2
test cl, 2
jne 0x41b0c4
or ecx, 2
mov dword [0x48fb2c], ecx
mov byte [esp + 0x5ec], 3
xor eax, eax
push 0x474210
mov dword [0x48fb28], 7
mov dword [0x48fb24], 0
mov word [0x48fb14], ax
call fcn.0044bed4
add esp, 4
mov byte [esp + 0x5ec], 2
cmp dword [0x48fb24], 0
je 0x41b12b
mov ecx, 0x48fb14
call fcn.00410ff0
test al, al
jne 0x41b0e5
mov ecx, 0x48fb14
call fcn.004111f0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x48fb14
mov word [esi], ax
call fcn.00403ac0
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 0
mov ecx, dword [0x48fb30]
test ecx, ecx
je 0x41b809
push ecx
jmp 0x41b803
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x5ec], 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
call fcn.00424d70
mov byte [esp + 0x5ec], 5
call fcn.00424430
test al, al
je 0x41b18a
call fcn.004252a0
test al, al
jne 0x41b18a
lea ecx, [esp + 0x4c]
call fcn.00425060
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x1d4], ax
lea eax, [esp + 0x1d6]
push eax
call fcn.00451b50
add esp, 0xc
mov dword [esp + 0xb4], 0x114
lea eax, [esp + 0xb8]
push 0x110
push 0
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41b1fc
cmp dword [esp + 0xb8], 6
jb 0x41b1fc
push 0x208
lea eax, [esp + 0x1d0]
push eax
push str._ProgramData_
jmp 0x41b20e
push 0x208
lea eax, [esp + 0x1d0]
push eax
push str._ALLUSERSPROFILE_Application_Data
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
setne bl
cmp word [esp + 0x1cc], 0
jne 0x41b228
xor ecx, ecx
jmp 0x41b241
lea ecx, [esp + 0x1cc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b232
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403be0
test bl, bl
jne 0x41b272
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
mov dword [esp + 0x44], 0
cmovae eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x44], 0
je 0x41b2ad
mov edx, 0x10
lea ecx, [esp + 0x34]
call fcn.00412010
push 0x13
push str.2345PackStatService
lea ecx, [esp + 0x3c]
call fcn.004039e0
push 0x5c
push 1
lea ecx, [esp + 0x3c]
call fcn.0040f520
lea ecx, [esp + 0x34]
call fcn.004111f0
lea ecx, [esp + 0x34]
call fcn.00410ff0
test al, al
je 0x41b306
lea ecx, [esp + 0x34]
call fcn.0041adb0
test al, al
je 0x41b306
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
mov ecx, 0x48fb14
push eax
call fcn.00403ac0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [esp + 0x34]
push eax
call fcn.00403290
mov dword [esp + 0x14], 1
jmp 0x41b7b3
xor eax, eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov byte [esp + 0x5ec], 6
cmp dword [edi + 0x10], eax
jne 0x41b3d0
lea ecx, [esp + 0x18]
call fcn.0041acd0
mov edi, eax
mov byte [esp + 0x5ec], 7
lea eax, [esp + 0x6c]
cmp eax, edi
je 0x41b39c
cmp dword [esp + 0x80], 8
jb 0x41b375
push dword [esp + 0x6c]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
call fcn.00403290
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x2c], 8
jb 0x41b3b7
push dword [esp + 0x18]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jmp 0x41b43f
cmp dword [edi + 0x14], 8
jb 0x41b3d8
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.0043ba10
mov byte [esp + 0x5ec], 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x54]
call fcn.00411a10
mov edx, 0x10
lea ecx, [esp + 0x6c]
call fcn.00412010
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x68], 8
jb 0x41b428
push dword [esp + 0x54]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
push str.config
lea edx, [esp + 0x70]
lea ecx, [esp + 0x88]
call fcn.0040b0e0
add esp, 4
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x84]
push 0x5c
push 1
call fcn.0040f520
lea ecx, [esp + 0x84]
call fcn.00410ff0
test al, al
jne 0x41b48b
lea ecx, [esp + 0x84]
call fcn.004132b0
lea ecx, [esp + 0x84]
call fcn.00410ff0
test al, al
je 0x41b5f1
push str.2345packStatData.cst
lea ecx, [esp + 0x1c]
call fcn.00402c40
mov byte [esp + 0x5ec], 0xa
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x88]
lea ecx, [esp + 0x58]
call fcn.00412190
add esp, 4
mov byte [esp + 0x5ec], 0xc
cmp dword [esp + 0x2c], 8
jb 0x41b4e8
push dword [esp + 0x18]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
lea ecx, [esp + 0x84]
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0041adb0
test al, al
je 0x41b5bf
lea ecx, [esp + 0x54]
call fcn.0041ba90
test al, al
je 0x41b5bf
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x8c]
mov ecx, 0x48fb14
push eax
call fcn.00403ac0
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.00402ca0
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x54]
call fcn.00402d10
mov byte [esp + 0x5ec], 6
lea ecx, [esp + 0x84]
call fcn.00402d10
mov byte [esp + 0x5ec], 5
lea ecx, [esp + 0x6c]
call fcn.00402d10
mov byte [esp + 0x5ec], 4
lea ecx, [esp + 0x4c]
call fcn.004251a0
mov byte [esp + 0x5ec], 2
lea ecx, [esp + 0x34]
call fcn.00402d10
mov byte [esp + 0x5ec], 0
lea ecx, [esp + 0x50]
call fcn.00413080
jmp 0x41b811
mov byte [esp + 0x5ec], 9
cmp dword [esp + 0x68], 8
jb 0x41b5da
push dword [esp + 0x54]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea ecx, [esp + 0x34]
call fcn.00410ff0
test al, al
jne 0x41b607
lea ecx, [esp + 0x34]
call fcn.004111f0
lea ecx, [esp + 0x34]
call fcn.0041adb0
test al, al
jne 0x41b625
lea eax, [esp + 0x34]
push eax
call fcn.004253d0
mov ecx, eax
call fcn.00425b70
lea ecx, [esp + 0x34]
call fcn.00410ff0
test al, al
je 0x41b713
push 0x47cd70
lea edx, [esp + 0x88]
lea ecx, [esp + 0xa0]
call fcn.0040b0e0
add esp, 4
mov byte [esp + 0x5ec], 0xd
xorps xmm0, xmm0
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x5ec], 0xe
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x58]
call fcn.00412570
push 0x47cbf4
lea ecx, [esp + 0x1c]
call fcn.00402c40
mov byte [esp + 0x5ec], 0xf
sub esp, 8
lea eax, [esp + 0x20]
lea edx, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0041aa40
add esp, 0x10
mov byte [esp + 0x5ec], 0xe
lea ecx, [esp + 0x18]
call fcn.00402d10
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
mov ecx, 0x48fb14
push eax
call fcn.00403ac0
mov byte [esp + 0x5ec], 0xd
lea ecx, [esp + 0x54]
call fcn.00409fd0
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x9c]
call fcn.00402d10
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [esp + 0x34]
push eax
call fcn.00403290
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x98], 8
jb 0x41b75b
push dword [esp + 0x84]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
mov byte [esp + 0x5ec], 5
cmp dword [esp + 0x80], 8
jb 0x41b799
push dword [esp + 0x6c]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov byte [esp + 0x5ec], 4
lea ecx, [esp + 0x4c]
call fcn.004251a0
mov byte [esp + 0x5ec], 2
cmp dword [esp + 0x48], 8
jb 0x41b7df
push dword [esp + 0x34]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov byte [esp + 0x5ec], al
mov eax, dword [0x48fb30]
test eax, eax
je 0x41b809
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x50], 0
mov eax, esi
mov ecx, dword [esp + 0x5e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5cc]
xor ecx, esp
call fcn.0044b642
add esp, 0x5e0
ret