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

Disassembly:
push 0xffffffffffffffff
push 0x46f0d2
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 0x41b4c4
or ecx, 1
mov dword [0x48fb2c], ecx
mov dword [esp + 0x5ec], 1
push 0x18
mov dword [0x48fb30], 0
call fcn.0044c5cf
add esp, 4
mov dword [0x48fb30], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x474740
call fcn.0044c334
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 0x41b4e2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x48fb2c]
mov dword [esp + 0x5ec], 2
test cl, 2
jne 0x41b534
or ecx, 2
mov dword [0x48fb2c], ecx
mov byte [esp + 0x5ec], 3
xor eax, eax
push 0x4746e0
mov dword [0x48fb28], 7
mov dword [0x48fb24], 0
mov word [0x48fb14], ax
call fcn.0044c334
add esp, 4
mov byte [esp + 0x5ec], 2
cmp dword [0x48fb24], 0
je 0x41b59b
mov ecx, 0x48fb14
call fcn.00411450
test al, al
jne 0x41b555
mov ecx, 0x48fb14
call fcn.00411650
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 0x41bc79
push ecx
jmp 0x41bc73
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.00425220
mov byte [esp + 0x5ec], 5
call fcn.004248e0
test al, al
je 0x41b5fa
call fcn.00425750
test al, al
jne 0x41b5fa
lea ecx, [esp + 0x4c]
call fcn.00425510
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x1d4], ax
lea eax, [esp + 0x1d6]
push eax
call fcn.00451fb0
add esp, 0xc
mov dword [esp + 0xb4], 0x114
lea eax, [esp + 0xb8]
push 0x110
push 0
push eax
call fcn.00451fb0
add esp, 0xc
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41b66c
cmp dword [esp + 0xb8], 6
jb 0x41b66c
push 0x208
lea eax, [esp + 0x1d0]
push eax
push str._ProgramData_
jmp 0x41b67e
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 0x41b698
xor ecx, ecx
jmp 0x41b6b1
lea ecx, [esp + 0x1cc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b6a2
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 0x41b6e2
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 0x41b71d
mov edx, 0x10
lea ecx, [esp + 0x34]
call fcn.00412470
push 0x13
push str.2345PackStatService
lea ecx, [esp + 0x3c]
call fcn.004039e0
push 0x5c
push 1
lea ecx, [esp + 0x3c]
call fcn.0040f980
lea ecx, [esp + 0x34]
call fcn.00411650
lea ecx, [esp + 0x34]
call fcn.00411450
test al, al
je 0x41b776
lea ecx, [esp + 0x34]
call fcn.0041b220
test al, al
je 0x41b776
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 0x41bc23
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 0x41b840
lea ecx, [esp + 0x18]
call fcn.0041b140
mov edi, eax
mov byte [esp + 0x5ec], 7
lea eax, [esp + 0x6c]
cmp eax, edi
je 0x41b80c
cmp dword [esp + 0x80], 8
jb 0x41b7e5
push dword [esp + 0x6c]
call fcn.0044baac
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 0x41b827
push dword [esp + 0x18]
call fcn.0044baac
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jmp 0x41b8af
cmp dword [edi + 0x14], 8
jb 0x41b848
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.0043be80
mov byte [esp + 0x5ec], 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x54]
call fcn.00411e70
mov edx, 0x10
lea ecx, [esp + 0x6c]
call fcn.00412470
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x68], 8
jb 0x41b898
push dword [esp + 0x54]
call fcn.0044baac
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.0040b530
add esp, 4
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x84]
push 0x5c
push 1
call fcn.0040f980
lea ecx, [esp + 0x84]
call fcn.00411450
test al, al
jne 0x41b8fb
lea ecx, [esp + 0x84]
call fcn.00413710
lea ecx, [esp + 0x84]
call fcn.00411450
test al, al
je 0x41ba61
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.004125f0
add esp, 4
mov byte [esp + 0x5ec], 0xc
cmp dword [esp + 0x2c], 8
jb 0x41b958
push dword [esp + 0x18]
call fcn.0044baac
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.0041b220
test al, al
je 0x41ba2f
lea ecx, [esp + 0x54]
call fcn.0041bf00
test al, al
je 0x41ba2f
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.00425650
mov byte [esp + 0x5ec], 2
lea ecx, [esp + 0x34]
call fcn.00402d10
mov byte [esp + 0x5ec], 0
lea ecx, [esp + 0x50]
call fcn.004134e0
jmp 0x41bc81
mov byte [esp + 0x5ec], 9
cmp dword [esp + 0x68], 8
jb 0x41ba4a
push dword [esp + 0x54]
call fcn.0044baac
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.00411450
test al, al
jne 0x41ba77
lea ecx, [esp + 0x34]
call fcn.00411650
lea ecx, [esp + 0x34]
call fcn.0041b220
test al, al
jne 0x41ba95
lea eax, [esp + 0x34]
push eax
call fcn.00425880
mov ecx, eax
call fcn.00426020
lea ecx, [esp + 0x34]
call fcn.00411450
test al, al
je 0x41bb83
push 0x47cdc0
lea edx, [esp + 0x88]
lea ecx, [esp + 0xa0]
call fcn.0040b530
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.004129d0
push 0x47cc44
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.0041aeb0
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.0040a420
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 0x41bbcb
push dword [esp + 0x84]
call fcn.0044baac
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 0x41bc09
push dword [esp + 0x6c]
call fcn.0044baac
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.00425650
mov byte [esp + 0x5ec], 2
cmp dword [esp + 0x48], 8
jb 0x41bc4f
push dword [esp + 0x34]
call fcn.0044baac
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 0x41bc79
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.0044bab1
add esp, 0x5e0
ret