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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x20c]
push edi
push 0x403130
push 0x4066b4
push 0x103
xor esi, esi
push eax
mov dword [ebp - 0x420], esi
call fcn.00418481
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42404d
push ebx
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x418]
inc ebx
push eax
push esi
push 0x406578
push dword [ebp - 0x420]
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423ec4
cmp dword [ebp - 0x418], ebx
je 0x423e34
cmp dword [ebp - 0x418], 2
jne 0x423ec4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x423e3d
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jbe 0x423ec4
cmp dword [ebp - 0x418], 2
jne 0x423e9a
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x424040
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.00418392
test eax, eax
js 0x424040
push ebx
push ecx
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.0042834b
test eax, eax
js 0x423ec4
lea ecx, [ebp - 0x414]
call fcn.00425077
test eax, eax
je 0x424040
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x14
push eax
lea eax, [edi + 0x3e8]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x4066d8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424040
cmp dword [ebp - 0x418], ebx
jne 0x424040
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x12c
push eax
lea eax, [edi + 0xc8]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x4066f4
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424040
cmp dword [ebp - 0x418], ebx
jne 0x424040
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0xc8
push eax
lea ebx, [edi + 0x320]
push ebx
lea eax, [ebp - 0x418]
push eax
push esi
push 0x401058
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x423f8c
cmp dword [ebp - 0x418], 1
je 0x423f9b
push 0x401064
push 0x64
pop edx
mov ecx, ebx
call fcn.00418392
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x12c
push eax
lea eax, [edi + 0x1f4]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x40671c
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424040
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x418], ebx
jne 0x424040
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x406744
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424038
cmp dword [ebp - 0x418], ebx
jne 0x424038
lea eax, [ebp - 0x20c]
push 0x403ed8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x424038
mov dword [edi + 0x3fc], esi
jmp 0x42403e
mov dword [edi + 0x3fc], ebx
mov esi, ebx
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret