Function at 0x401fcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x480], 1
mov eax, dword [ebp + 0xc]
mov word [eax], 0
lea ecx, [ebp - 0x26c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00402655
add esp, 8
lea ecx, [ebp - 0x484]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
add edx, 0x618
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x488], eax
cmp dword [ebp + 0x1c], 0
je 0x40206d
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
cmp dword [ebp - 0x488], 0
jne 0x4020b5
cmp dword [ebp + 0x1c], 0
je 0x402085
mov edx, dword [ebp + 0x1c]
mov dword [edx], 1
mov dword [ebp - 4], 0x50
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x40b558
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 0
je 0x40214c
lea ecx, [ebp - 0x478]
push ecx
call fcn.00405b05
add esp, 4
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
je 0x4020e5
jmp 0x402256
cmp dword [ebp + 0x18], 0
je 0x4020fc
push 0x40b570
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40b580
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
mov ecx, dword [ebp + 0x14]
add ecx, 0x820
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b588
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
lea ecx, [ebp - 0x478]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
jmp 0x40220e
push 0x40b58c
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea ecx, [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b5a8
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
push 0x409190
lea edx, [ebp - 0x208]
push edx
call dword [0x40f0b8]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jge 0x4021b7
jmp 0x402254
lea eax, [ebp - 0x26c]
push eax
push 0x40b5ac
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20c]
push eax
call dword [edx + 0x3c]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x264], 0
je 0x40220e
cmp dword [ebp + 0x18], 0
je 0x4021fb
push 0x40b5d0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
lea ecx, [ebp - 0x26c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x484], 0
je 0x402231
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
je 0x40224c
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20c]
push edx
call dword [ecx + 8]
mov eax, dword [ebp - 0x47c]
jmp 0x402258
jmp 0x40220e
jmp 0x40220e
mov esp, ebp
pop ebp
ret