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

Disassembly:
push 0xffffffffffffffff
push 0x46ee22
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 [0x48faec]
mov dword [esp + 0x30], esi
test cl, 1
jne 0x41b1e4
or ecx, 1
mov dword [0x48faec], ecx
mov dword [esp + 0x5ec], 1
push 0x18
mov dword [0x48faf0], 0
call fcn.0044c2ff
add esp, 4
mov dword [0x48faf0], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x474390
call fcn.0044c064
add esp, 4
mov byte [esp + 0x5ec], 0
mov ecx, dword [0x48faec]
mov eax, dword [0x48faf0]
mov dword [esp + 0x50], 0x48faf0
test eax, eax
je 0x41b202
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x48faec]
mov dword [esp + 0x5ec], 2
test cl, 2
jne 0x41b254
or ecx, 2
mov dword [0x48faec], ecx
mov byte [esp + 0x5ec], 3
xor eax, eax
push 0x474330
mov dword [0x48fae8], 7
mov dword [0x48fae4], 0
mov word [0x48fad4], ax
call fcn.0044c064
add esp, 4
mov byte [esp + 0x5ec], 2
cmp dword [0x48fae4], 0
je 0x41b2bb
mov ecx, 0x48fad4
call fcn.00411180
test al, al
jne 0x41b275
mov ecx, 0x48fad4
call fcn.00411380
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x48fad4
mov word [esi], ax
call fcn.00403a60
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 0
mov ecx, dword [0x48faf0]
test ecx, ecx
je 0x41b999
push ecx
jmp 0x41b993
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.00424f70
mov byte [esp + 0x5ec], 5
call fcn.00424630
test al, al
je 0x41b31a
call fcn.004254a0
test al, al
jne 0x41b31a
lea ecx, [esp + 0x4c]
call fcn.00425260
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x1d4], ax
lea eax, [esp + 0x1d6]
push eax
call fcn.00451ce0
add esp, 0xc
mov dword [esp + 0xb4], 0x114
lea eax, [esp + 0xb8]
push 0x110
push 0
push eax
call fcn.00451ce0
add esp, 0xc
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41b38c
cmp dword [esp + 0xb8], 6
jb 0x41b38c
push 0x208
lea eax, [esp + 0x1d0]
push eax
push str._ProgramData_
jmp 0x41b39e
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 0x41b3b8
xor ecx, ecx
jmp 0x41b3d1
lea ecx, [esp + 0x1cc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b3c2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403b80
test bl, bl
jne 0x41b402
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 0x41b43d
mov edx, 0x10
lea ecx, [esp + 0x34]
call fcn.004122a0
push 0x13
push str.2345PackStatService
lea ecx, [esp + 0x3c]
call fcn.00403980
push 0x5c
push 1
lea ecx, [esp + 0x3c]
call fcn.0040f640
lea ecx, [esp + 0x34]
call fcn.00411380
lea ecx, [esp + 0x34]
call fcn.00411180
test al, al
je 0x41b496
lea ecx, [esp + 0x34]
call fcn.0041af40
test al, al
je 0x41b496
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
mov ecx, 0x48fad4
push eax
call fcn.00403a60
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.00403230
mov dword [esp + 0x14], 1
jmp 0x41b943
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 0x41b560
lea ecx, [esp + 0x18]
call fcn.0041ae60
mov edi, eax
mov byte [esp + 0x5ec], 7
lea eax, [esp + 0x6c]
cmp eax, edi
je 0x41b52c
cmp dword [esp + 0x80], 8
jb 0x41b505
push dword [esp + 0x6c]
call fcn.0044b7dc
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.00403230
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x2c], 8
jb 0x41b547
push dword [esp + 0x18]
call fcn.0044b7dc
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jmp 0x41b5cf
cmp dword [edi + 0x14], 8
jb 0x41b568
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.0043bbb0
mov byte [esp + 0x5ec], 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x54]
call fcn.00411ca0
mov edx, 0x10
lea ecx, [esp + 0x6c]
call fcn.004122a0
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x68], 8
jb 0x41b5b8
push dword [esp + 0x54]
call fcn.0044b7dc
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.00411800
add esp, 4
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x84]
push 0x5c
push 1
call fcn.0040f640
lea ecx, [esp + 0x84]
call fcn.00411180
test al, al
jne 0x41b61b
lea ecx, [esp + 0x84]
call fcn.00413540
lea ecx, [esp + 0x84]
call fcn.00411180
test al, al
je 0x41b781
push str.2345packStatData.cst
lea ecx, [esp + 0x1c]
call fcn.00402be0
mov byte [esp + 0x5ec], 0xa
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x88]
lea ecx, [esp + 0x58]
call fcn.00412420
add esp, 4
mov byte [esp + 0x5ec], 0xc
cmp dword [esp + 0x2c], 8
jb 0x41b678
push dword [esp + 0x18]
call fcn.0044b7dc
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.0041af40
test al, al
je 0x41b74f
lea ecx, [esp + 0x54]
call fcn.0041bc20
test al, al
je 0x41b74f
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x8c]
mov ecx, 0x48fad4
push eax
call fcn.00403a60
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.00402c40
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x54]
call fcn.00402cb0
mov byte [esp + 0x5ec], 6
lea ecx, [esp + 0x84]
call fcn.00402cb0
mov byte [esp + 0x5ec], 5
lea ecx, [esp + 0x6c]
call fcn.00402cb0
mov byte [esp + 0x5ec], 4
lea ecx, [esp + 0x4c]
call fcn.004253a0
mov byte [esp + 0x5ec], 2
lea ecx, [esp + 0x34]
call fcn.00402cb0
mov byte [esp + 0x5ec], 0
lea ecx, [esp + 0x50]
call fcn.00413310
jmp 0x41b9a1
mov byte [esp + 0x5ec], 9
cmp dword [esp + 0x68], 8
jb 0x41b76a
push dword [esp + 0x54]
call fcn.0044b7dc
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.00411180
test al, al
jne 0x41b797
lea ecx, [esp + 0x34]
call fcn.00411380
lea ecx, [esp + 0x34]
call fcn.0041af40
test al, al
jne 0x41b7b5
lea eax, [esp + 0x34]
push eax
call fcn.004255d0
mov ecx, eax
call fcn.00425d70
lea ecx, [esp + 0x34]
call fcn.00411180
test al, al
je 0x41b8a3
push 0x47cd20
lea edx, [esp + 0x88]
lea ecx, [esp + 0xa0]
call fcn.00411800
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.00412800
push 0x47cba4
lea ecx, [esp + 0x1c]
call fcn.00402be0
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.0041abd0
add esp, 0x10
mov byte [esp + 0x5ec], 0xe
lea ecx, [esp + 0x18]
call fcn.00402cb0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
mov ecx, 0x48fad4
push eax
call fcn.00403a60
mov byte [esp + 0x5ec], 0xd
lea ecx, [esp + 0x54]
call fcn.0040a360
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x9c]
call fcn.00402cb0
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.00403230
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x98], 8
jb 0x41b8eb
push dword [esp + 0x84]
call fcn.0044b7dc
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 0x41b929
push dword [esp + 0x6c]
call fcn.0044b7dc
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.004253a0
mov byte [esp + 0x5ec], 2
cmp dword [esp + 0x48], 8
jb 0x41b96f
push dword [esp + 0x34]
call fcn.0044b7dc
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 [0x48faf0]
test eax, eax
je 0x41b999
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.0044b7e1
add esp, 0x5e0
ret