Function at 0x4149f0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x49484c
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor edi, edi
push 0x206
lea eax, [esp + 0x2a]
push edi
push eax
mov esi, ecx
xor ebp, ebp
mov word [esp + 0x30], di
call fcn.00463d60
add esp, 0xc
lea eax, [edi + 1]
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.00403230
mov eax, dword [eax]
mov ecx, 0x49fcd0
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414a86
cmp dx, di
je 0x414a82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414a86
add eax, 4
add ecx, 4
cmp dx, di
jne 0x414a60
xor eax, eax
jmp 0x414a8b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x414c93
mov eax, 4
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.00403230
push eax
mov ecx, 0x4a1530
call fcn.0040d170
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414af8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x414b40
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffc
push esi
lea ecx, [esp + 0x18]
call fcn.00416af0
mov dword [esp + 0x238], edi
mov edi, esi
call fcn.00401cd0
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x414c60
mov eax, 0xc
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.00403230
push eax
mov ecx, str.SystemRoot_
call fcn.0040d170
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x414c6c
push 0x104
lea ecx, [esp + 0x28]
push ecx
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
add eax, 0xfffffff5
push esi
lea ecx, [esp + 0x20]
call fcn.00416af0
mov edi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x23c], 1
call fcn.004021c0
lea ecx, [esp + 0x20]
push edi
push ecx
mov ebx, eax
mov byte [esp + 0x240], 2
call fcn.00416b70
add esp, 8
mov edi, esi
mov byte [esp + 0x238], 3
call fcn.00401cd0
mov byte [esp + 0x238], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x238], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
cmp eax, 3
jg 0x414c7d
call fcn.004023a0
jmp 0x414c98
cmp eax, 1
jge 0x414c8c
push 0x80070057
call fcn.00402340
cmp word [ecx + 2], 0x3a
jne 0x414c76
mov ebp, 1
mov eax, ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0045eec1
add esp, 0x228
ret