Function at 0x418a10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x46ab5c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x224], 0
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x10], 0
push 0x4552a0
push 1
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406bc0
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
call fcn.00406c40
add esp, 8
mov byte [ebp - 0x225], al
lea ecx, [ebp - 0x22c]
call fcn.00401080
movzx eax, byte [ebp - 0x225]
test eax, eax
je 0x418cf6
push str.___
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0x220], eax
push str.SystemRoot_
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0x10], eax
push str.___
mov ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x234]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406bc0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
push eax
call fcn.00406c40
add esp, 8
mov byte [ebp - 0x22d], al
lea ecx, [ebp - 0x234]
call fcn.00401080
movzx ecx, byte [ebp - 0x22d]
test ecx, ecx
je 0x418b8e
mov ecx, dword [ebp + 8]
call fcn.00406970
sub eax, dword [ebp - 0x220]
push eax
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406b30
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x25c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004027e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401080
jmp 0x418cc3
push str.SystemRoot_
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406bc0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00406c40
add esp, 8
mov byte [ebp - 0x239], al
lea ecx, [ebp - 0x240]
call fcn.00401080
movzx edx, byte [ebp - 0x239]
test edx, edx
je 0x418cc3
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
call fcn.00406970
sub eax, dword [ebp - 0x10]
add eax, 1
push eax
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406b30
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00401000
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x278]
push eax
mov ecx, dword [ebp + 8]
call fcn.004027e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00401080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00401080
mov ecx, dword [ebp + 8]
call fcn.00406970
cmp eax, 3
jg 0x418cda
mov ecx, dword [ebp + 8]
call fcn.00401210
jmp 0x418d00
push 1
mov ecx, dword [ebp + 8]
call fcn.00406ca0
movzx ecx, ax
cmp ecx, 0x3a
je 0x418cf6
mov ecx, dword [ebp + 8]
call fcn.00401210
jmp 0x418d00
mov dword [ebp - 0x224], 1
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044be2c
mov esp, ebp
pop ebp
ret