Function at 0x41e5a9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaf8
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xaf4], edx
mov dword [ebp - 0xaf0], esi
mov ebx, ecx
mov dword [ebp - 0xae4], 1
test eax, eax
je 0x41ec15
push 0x117
lea ecx, [ebp - 0x6d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
cmp dword [0x42cc34], esi
je 0x41e61e
lea ecx, [ebp - 0x6d0]
call fcn.0041e432
jmp 0x41ec15
push edi
lea eax, [ebp - 0x6d0]
mov edx, 0x117
push eax
lea ecx, [ebp - 0x234]
call fcn.00418392
lea eax, [ebp - 0x234]
push 0x403068
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
push 0x5c
pop edx
test eax, eax
je 0x41e734
xor ecx, ecx
mov word [eax + 8], cx
lea eax, [ebp - 0x234]
push edx
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
neg edi
pop ecx
sbb edi, edi
neg edi
pop ecx
je 0x41e734
lea eax, [ebp - 0x234]
push 0x22
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x41e71b
add eax, 2
lea ecx, [ebp - 0x43c]
push eax
mov edx, 0x103
call fcn.00418392
lea eax, [ebp - 0x43c]
push 0x22
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x41e734
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41e6c4
sub ecx, edx
sar ecx, 1
cmp ecx, 8
jbe 0x41e734
push dword [ebp - 0x43c]
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x41e734
push 0x3a
pop eax
cmp ax, word [ebp - 0x43a]
jne 0x41e734
push 0x5c
pop eax
cmp ax, word [ebp - 0x438]
jne 0x41e734
lea eax, [ebp - 0x43c]
mov edx, 0x117
push eax
lea ecx, [ebp - 0x234]
call fcn.00418392
xor edi, edi
inc edi
test edi, edi
je 0x41e734
lea ecx, [ebp - 0x234]
call fcn.00425077
test eax, eax
jne 0x41e734
inc eax
jmp 0x41ec14
cmp dword [0x42cc38], esi
jne 0x41e859
push 0x403130
mov edx, 0x117
lea ecx, [ebp - 0x234]
call fcn.00418392
lea eax, [ebp - 0xae8]
mov edi, 0x118
mov edx, edi
push ecx
lea ecx, [ebp - 0x234]
push eax
sub ebx, esi
je 0x41e791
dec ebx
call fcn.00418514
sub ebx, 1
je 0x41e785
test eax, eax
js 0x41e7b9
push ecx
push 0x403e60
jmp 0x41e7a0
test eax, eax
js 0x41e7b9
push ecx
push 0x403e4c
jmp 0x41e7a0
call fcn.00418514
test eax, eax
js 0x41e7b9
push ecx
push 0x403e30
mov eax, dword [ebp - 0xae8]
mov edx, edi
push ecx
lea ecx, [ebp - 0x234]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00418577
push dword [ebp - 0xaf4]
mov edx, edi
lea ecx, [ebp - 0x234]
call fcn.00418407
lea eax, [ebp - 0xaf0]
xor edi, edi
push eax
inc edi
lea eax, [ebp - 0x234]
push edi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ec12
lea eax, [ebp - 0xaec]
mov dword [ebp - 0xaf4], esi
push eax
lea eax, [ebp - 0xae0]
mov dword [ebp - 0xaec], 0x208
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x403e7c
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e860
cmp dword [ebp - 0xae4], edi
jne 0x41e860
lea eax, [ebp - 0xae0]
push 0x401b58
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41e860
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41ec14
lea eax, [ebp - 0xaf4]
push eax
push edi
push esi
lea eax, [ebp - 0x234]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x230
test eax, eax
jne 0x41e900
lea eax, [ebp - 0xaec]
mov dword [ebp - 0xaec], ebx
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x403eb0
push dword [ebp - 0xaf4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e8f4
cmp dword [ebp - 0xae4], edi
jne 0x41e8f4
push dword [ebp - 0xaf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x234]
push 0x403ed8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x41ec14
push dword [ebp - 0xaf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xaec]
mov dword [ebp - 0xaec], ebx
push eax
lea eax, [ebp - 0x234]
mov ebx, esi
push eax
lea eax, [ebp - 0xae4]
mov dword [ebp - 0xae8], ebx
push eax
push esi
push 0x403ee0
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e961
cmp dword [ebp - 0xae4], edi
jne 0x41e961
lea eax, [ebp - 0x234]
push 0x403ed8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41e961
mov ebx, edi
mov dword [ebp - 0xae8], edi
lea eax, [ebp - 0xaec]
mov dword [ebp - 0xaec], 0x230
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x403f00
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ea58
cmp dword [ebp - 0xae4], edi
jne 0x41ea58
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea edi, [ebp - 0x234]
push edi
mov edx, 0x103
lea ecx, [ebp - 0x8d8]
call fcn.00418392
lea eax, [ebp - 0x8d8]
push 0x7c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x41e9e5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x8d8]
push 0x4020b4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41ea15
lea eax, [ebp - 0x8d8]
push 0x403f1c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41ea1e
xor ebx, ebx
inc ebx
mov dword [ebp - 0xae8], ebx
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x41ec02
push 0x7c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ea55
add edi, 2
jmp 0x41e9ba
xor edi, edi
inc edi
lea eax, [ebp - 0xaec]
mov dword [ebp - 0xaec], 0x230
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0xae4]
push eax
push esi
push 0x403f24
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ec00
cmp dword [ebp - 0xae4], edi
jne 0x41ec00
test ebx, ebx
jne 0x41ead9
lea eax, [ebp - 0x234]
push 0x4020b4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41ec00
lea eax, [ebp - 0x234]
push 0x403f1c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41ec00
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
pop ecx
lea edi, [ebp - 0x234]
push edi
mov edx, 0x103
lea ecx, [ebp - 0x43c]
call fcn.00418392
lea eax, [ebp - 0x43c]
push 0x7c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x41eb26
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x41eb7e
cmp dword [ebp - 0xae8], esi
jne 0x41ebe2
lea eax, [ebp - 0x43c]
push 0x4020b4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41eb7e
lea eax, [ebp - 0x43c]
push 0x403f1c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41ebe2
lea eax, [ebp - 0x6d0]
cmp ebx, eax
je 0x41ebfb
movzx eax, word [ebx - 2]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
neg eax
pop ecx
sbb eax, eax
add eax, 1
jne 0x41ebfb
push 0x5c
pop eax
cmp ax, word [ebp - 0x43c]
je 0x41ebe2
lea eax, [ebp - 0x43c]
push eax
push 0x403f3c
lea eax, [ebp - 0x4a0]
push 0x31
push eax
call fcn.00418481
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x18
neg eax
sbb eax, eax
neg eax
jne 0x41ebfb
push 0x7c
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41ec02
add edi, 2
jmp 0x41eafb
xor esi, esi
inc esi
jmp 0x41ec02
mov esi, edi
push dword [ebp - 0xaf0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41ec14
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret 4