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

Disassembly:
push 0xffffffffffffffff
push 0x4738c2
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x5cc], eax
push ebx
push esi
push edi
mov eax, dword [0x49274c]
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 [0x495adc]
mov dword [esp + 0x30], esi
test cl, 1
jne 0x41f334
or ecx, 1
mov dword [0x495adc], ecx
mov dword [esp + 0x5ec], 1
push 0x18
mov dword [0x495ae0], 0
call fcn.004514bd
add esp, 4
mov dword [0x495ae0], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x478f70
call fcn.00450ef2
add esp, 4
mov byte [esp + 0x5ec], 0
mov ecx, dword [0x495adc]
mov eax, dword [0x495ae0]
mov dword [esp + 0x50], 0x495ae0
test eax, eax
je 0x41f352
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x495adc]
mov dword [esp + 0x5ec], 2
test cl, 2
jne 0x41f3a4
or ecx, 2
mov dword [0x495adc], ecx
mov byte [esp + 0x5ec], 3
xor eax, eax
push 0x478f10
mov dword [0x495ad8], 7
mov dword [0x495ad4], 0
mov word [0x495ac4], ax
call fcn.00450ef2
add esp, 4
mov byte [esp + 0x5ec], 2
cmp dword [0x495ad4], 0
je 0x41f40b
mov ecx, 0x495ac4
call fcn.004128d0
test al, al
jne 0x41f3c5
mov ecx, 0x495ac4
call fcn.00412ad0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x495ac4
mov word [esi], ax
call fcn.00406750
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 0
mov ecx, dword [0x495ae0]
test ecx, ecx
je 0x41fae9
push ecx
jmp 0x41fae3
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.00429510
mov byte [esp + 0x5ec], 5
call fcn.00428fc0
test al, al
je 0x41f46a
call fcn.00429a40
test al, al
jne 0x41f46a
lea ecx, [esp + 0x4c]
call fcn.00429800
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x1d4], ax
lea eax, [esp + 0x1d6]
push eax
call fcn.00455ee0
add esp, 0xc
mov dword [esp + 0xb4], 0x114
lea eax, [esp + 0xb8]
push 0x110
push 0
push eax
call fcn.00455ee0
add esp, 0xc
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f4dc
cmp dword [esp + 0xb8], 6
jb 0x41f4dc
push 0x208
lea eax, [esp + 0x1d0]
push eax
push str._ProgramData_
jmp 0x41f4ee
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 0x41f508
xor ecx, ecx
jmp 0x41f521
lea ecx, [esp + 0x1cc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f512
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x3c]
call fcn.004073e0
test bl, bl
jne 0x41f552
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 0x41f58d
mov edx, 0x10
lea ecx, [esp + 0x34]
call fcn.00411940
push 0x13
push str.2345PackStatService
lea ecx, [esp + 0x3c]
call fcn.00406670
push 0x5c
push 1
lea ecx, [esp + 0x3c]
call fcn.00411830
lea ecx, [esp + 0x34]
call fcn.00412ad0
lea ecx, [esp + 0x34]
call fcn.004128d0
test al, al
je 0x41f5e6
lea ecx, [esp + 0x34]
call fcn.0041f090
test al, al
je 0x41f5e6
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
mov ecx, 0x495ac4
push eax
call fcn.00406750
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.00406510
mov dword [esp + 0x14], 1
jmp 0x41fa93
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 0x41f6b0
lea ecx, [esp + 0x18]
call fcn.0041efb0
mov edi, eax
mov byte [esp + 0x5ec], 7
lea eax, [esp + 0x6c]
cmp eax, edi
je 0x41f67c
cmp dword [esp + 0x80], 8
jb 0x41f655
push dword [esp + 0x6c]
call fcn.0044fd7a
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.00406510
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x2c], 8
jb 0x41f697
push dword [esp + 0x18]
call fcn.0044fd7a
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
jmp 0x41f71f
cmp dword [edi + 0x14], 8
jb 0x41f6b8
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.004413c0
mov byte [esp + 0x5ec], 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x54]
call fcn.00412040
mov edx, 0x10
lea ecx, [esp + 0x6c]
call fcn.00411940
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x68], 8
jb 0x41f708
push dword [esp + 0x54]
call fcn.0044fd7a
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
push 0x481870
lea edx, [esp + 0x70]
lea ecx, [esp + 0x88]
call fcn.0040e030
add esp, 4
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x84]
push 0x5c
push 1
call fcn.00411830
lea ecx, [esp + 0x84]
call fcn.004128d0
test al, al
jne 0x41f76b
lea ecx, [esp + 0x84]
call fcn.00415ba0
lea ecx, [esp + 0x84]
call fcn.004128d0
test al, al
je 0x41f8d1
push str.2345packStatData.cst
lea ecx, [esp + 0x1c]
call fcn.00404e90
mov byte [esp + 0x5ec], 0xa
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x88]
lea ecx, [esp + 0x58]
call fcn.00411ac0
add esp, 4
mov byte [esp + 0x5ec], 0xc
cmp dword [esp + 0x2c], 8
jb 0x41f7c8
push dword [esp + 0x18]
call fcn.0044fd7a
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.0041f090
test al, al
je 0x41f89f
lea ecx, [esp + 0x54]
call fcn.0041fd70
test al, al
je 0x41f89f
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x8c]
mov ecx, 0x495ac4
push eax
call fcn.00406750
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.00404ef0
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x54]
call fcn.00404f60
mov byte [esp + 0x5ec], 6
lea ecx, [esp + 0x84]
call fcn.00404f60
mov byte [esp + 0x5ec], 5
lea ecx, [esp + 0x6c]
call fcn.00404f60
mov byte [esp + 0x5ec], 4
lea ecx, [esp + 0x4c]
call fcn.00429940
mov byte [esp + 0x5ec], 2
lea ecx, [esp + 0x34]
call fcn.00404f60
mov byte [esp + 0x5ec], 0
lea ecx, [esp + 0x50]
call fcn.00415970
jmp 0x41faf1
mov byte [esp + 0x5ec], 9
cmp dword [esp + 0x68], 8
jb 0x41f8ba
push dword [esp + 0x54]
call fcn.0044fd7a
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.004128d0
test al, al
jne 0x41f8e7
lea ecx, [esp + 0x34]
call fcn.00412ad0
lea ecx, [esp + 0x34]
call fcn.0041f090
test al, al
jne 0x41f905
lea eax, [esp + 0x34]
push eax
call fcn.00429b70
mov ecx, eax
call fcn.0042a310
lea ecx, [esp + 0x34]
call fcn.004128d0
test al, al
je 0x41f9f3
push 0x481df4
lea edx, [esp + 0x88]
lea ecx, [esp + 0xa0]
call fcn.0040e030
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.00413150
push 0x481240
lea ecx, [esp + 0x1c]
call fcn.00404e90
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.0041ed20
add esp, 0x10
mov byte [esp + 0x5ec], 0xe
lea ecx, [esp + 0x18]
call fcn.00404f60
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
mov ecx, 0x495ac4
push eax
call fcn.00406750
mov byte [esp + 0x5ec], 0xd
lea ecx, [esp + 0x54]
call fcn.004052a0
mov byte [esp + 0x5ec], 9
lea ecx, [esp + 0x9c]
call fcn.00404f60
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.00406510
mov dword [esp + 0x14], 1
mov byte [esp + 0x5ec], 6
cmp dword [esp + 0x98], 8
jb 0x41fa3b
push dword [esp + 0x84]
call fcn.0044fd7a
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 0x41fa79
push dword [esp + 0x6c]
call fcn.0044fd7a
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.00429940
mov byte [esp + 0x5ec], 2
cmp dword [esp + 0x48], 8
jb 0x41fabf
push dword [esp + 0x34]
call fcn.0044fd7a
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 [0x495ae0]
test eax, eax
je 0x41fae9
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.0044fd7f
add esp, 0x5e0
ret