Function at 0x4140c0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4be0f2
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x4b4], eax
push ebx
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x4cc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [0x4f8a58]
mov dword [esp + 0x18], esi
test cl, 1
jne 0x414164
or ecx, 1
mov dword [0x4f8a58], ecx
mov dword [esp + 0x4d4], 1
push 0x18
mov dword [0x4f8a5c], 0
call fcn.0049c7b6
add esp, 4
mov dword [0x4f8a5c], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4cdd50
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x4d4], 0
mov ecx, dword [0x4f8a58]
mov eax, dword [0x4f8a5c]
mov dword [esp + 0x38], 0x4f8a5c
test eax, eax
je 0x414182
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4f8a58]
mov dword [esp + 0x4d4], 2
test cl, 2
jne 0x4141d4
or ecx, 2
mov dword [0x4f8a58], ecx
mov byte [esp + 0x4d4], 3
xor eax, eax
push 0x4cdcf0
mov dword [0x4f8a54], 7
mov dword [0x4f8a50], 0
mov word [0x4f8a40], ax
call fcn.0049c72f
add esp, 4
mov byte [esp + 0x4d4], 2
cmp dword [0x4f8a50], 0
je 0x41423b
mov ecx, 0x4f8a40
call fcn.0040d700
test al, al
jne 0x4141f5
mov ecx, 0x4f8a40
call fcn.0040d900
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4f8a40
mov word [esi], ax
call fcn.00401fd0
mov dword [esp + 0x14], 1
mov byte [esp + 0x4d4], 0
mov ecx, dword [0x4f8a5c]
test ecx, ecx
je 0x41482c
push ecx
jmp 0x414826
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov byte [esp + 0x4d4], 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
call fcn.00423350
mov byte [esp + 0x4d4], 5
call fcn.00402c90
test al, al
je 0x41429a
call fcn.00423880
test al, al
jne 0x41429a
lea ecx, [esp + 0x34]
call fcn.00423640
xor eax, eax
push 0x40e
push eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0xbe]
push eax
call fcn.004a1910
add esp, 0xc
call fcn.00402d10
test al, al
lea eax, [esp + 0xb4]
push 0x208
push eax
je 0x4142d7
push 0x4d6a7c
jmp 0x4142dc
push str._ALLUSERSPROFILE_Application_Data
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
setne bl
cmp word [esp + 0xb4], 0
jne 0x4142f6
xor ecx, ecx
jmp 0x41430f
lea ecx, [esp + 0xb4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414300
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x24]
call fcn.004024a0
test bl, bl
jne 0x414340
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0
cmovae eax, dword [esp + 0x1c]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x2c], 0
je 0x41437b
mov edx, 0x10
lea ecx, [esp + 0x1c]
call fcn.0040c5f0
push 0x13
push str.2345PackStatService
lea ecx, [esp + 0x24]
call fcn.0040a5c0
push 0x5c
push 1
lea ecx, [esp + 0x24]
call fcn.00407690
lea ecx, [esp + 0x1c]
call fcn.0040d900
lea ecx, [esp + 0x1c]
call fcn.0040d700
test al, al
je 0x4143c1
lea ecx, [esp + 0x1c]
call fcn.00413f30
test al, al
je 0x4143c1
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
mov ecx, 0x4f8a40
push eax
call fcn.00401fd0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00404d30
mov dword [esp + 0x14], 1
jmp 0x4147d6
xor eax, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0x4d4], 6
cmp dword [edi + 0x10], eax
jne 0x414446
lea ecx, [esp + 0x3c]
call fcn.00413d80
mov edi, eax
mov byte [esp + 0x4d4], 7
lea eax, [esp + 0x54]
cmp eax, edi
je 0x414483
cmp dword [esp + 0x68], 8
jb 0x414423
push dword [esp + 0x54]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call fcn.00405670
jmp 0x414483
cmp dword [edi + 0x14], 8
jb 0x41444e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.004364c0
mov byte [esp + 0x4d4], 8
lea edx, [esp + 0x54]
lea ecx, [esp + 0x3c]
call fcn.0040b2c0
mov edx, 0x10
lea ecx, [esp + 0x54]
call fcn.0040c5f0
mov byte [esp + 0x4d4], 6
cmp dword [esp + 0x50], 8
jb 0x41449e
push dword [esp + 0x3c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
push str.config
lea edx, [esp + 0x58]
mov word [esp + 0x40], ax
lea ecx, [esp + 0x70]
mov dword [esp + 0x50], eax
call fcn.0040dbd0
add esp, 4
mov byte [esp + 0x4d4], 9
lea ecx, [esp + 0x6c]
push 0x5c
push 1
call fcn.00407690
lea ecx, [esp + 0x6c]
call fcn.0040d700
test al, al
jne 0x4144f1
lea ecx, [esp + 0x6c]
call fcn.0040bbf0
lea ecx, [esp + 0x6c]
call fcn.0040d700
test al, al
je 0x414630
push str.2345packStatData.cst
lea ecx, [esp + 0x40]
call fcn.00401dd0
mov byte [esp + 0x4d4], 0xa
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x70]
lea ecx, [esp + 0x88]
call fcn.0040c770
add esp, 4
mov byte [esp + 0x4d4], 0xc
cmp dword [esp + 0x50], 8
jb 0x41454b
push dword [esp + 0x3c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
lea ecx, [esp + 0x6c]
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.00413f30
test al, al
je 0x41461c
lea ecx, [esp + 0x84]
call fcn.00414ab0
test al, al
je 0x41461c
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x74]
mov ecx, 0x4f8a40
push eax
call fcn.00401fd0
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.00404d30
mov dword [esp + 0x14], 1
mov byte [esp + 0x4d4], 9
lea ecx, [esp + 0x84]
call fcn.00401e30
mov byte [esp + 0x4d4], 6
lea ecx, [esp + 0x6c]
call fcn.00401e30
mov byte [esp + 0x4d4], 5
lea ecx, [esp + 0x54]
call fcn.00401e30
mov byte [esp + 0x4d4], 4
lea ecx, [esp + 0x34]
call fcn.00423780
mov byte [esp + 0x4d4], 2
lea ecx, [esp + 0x1c]
call fcn.00401e30
mov byte [esp + 0x4d4], 0
lea ecx, [esp + 0x38]
call fcn.00402da0
jmp 0x414834
mov byte [esp + 0x4d4], 9
lea ecx, [esp + 0x84]
call fcn.00401e30
lea ecx, [esp + 0x1c]
call fcn.0040d700
test al, al
jne 0x414646
lea ecx, [esp + 0x1c]
call fcn.0040d900
lea ecx, [esp + 0x1c]
call fcn.00413f30
test al, al
jne 0x414664
lea eax, [esp + 0x1c]
push eax
call fcn.00423a30
mov ecx, eax
call fcn.00424180
lea ecx, [esp + 0x1c]
call fcn.0040d700
test al, al
je 0x414758
push 0x4d672c
lea edx, [esp + 0x70]
lea ecx, [esp + 0xa0]
call fcn.0040dbd0
add esp, 4
mov byte [esp + 0x4d4], 0xd
xorps xmm0, xmm0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x4d4], 0xe
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x40]
call fcn.0040a1d0
push 0x4d5fa4
lea ecx, [esp + 0x88]
call fcn.00401dd0
mov byte [esp + 0x4d4], 0xf
sub esp, 8
lea eax, [esp + 0x8c]
lea edx, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00413af0
add esp, 0x10
mov byte [esp + 0x4d4], 0xe
lea ecx, [esp + 0x84]
call fcn.00401e30
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x24]
mov ecx, 0x4f8a40
push eax
call fcn.00401fd0
mov byte [esp + 0x4d4], 0xd
lea ecx, [esp + 0x3c]
call fcn.0040a190
mov byte [esp + 0x4d4], 9
lea ecx, [esp + 0x9c]
call fcn.00401e30
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00404d30
mov dword [esp + 0x14], 1
mov byte [esp + 0x4d4], 6
cmp dword [esp + 0x80], 8
jb 0x41478a
push dword [esp + 0x6c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov byte [esp + 0x4d4], 5
cmp dword [esp + 0x68], 8
jb 0x4147bf
push dword [esp + 0x54]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0x4d4], 4
lea ecx, [esp + 0x34]
call fcn.00423780
mov byte [esp + 0x4d4], 2
cmp dword [esp + 0x30], 8
jb 0x414802
push dword [esp + 0x1c]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x4d4], al
mov eax, dword [0x4f8a5c]
test eax, eax
je 0x41482c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x38], 0
mov eax, esi
mov ecx, dword [esp + 0x4cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.0049bfa3
add esp, 0x4c8
ret