Function at 0x40247f
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.00402b05
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 0x40251d
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
cmp dword [ebp - 0x488], 0
jne 0x402565
cmp dword [ebp + 0x1c], 0
je 0x402535
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 0x40b8c4
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 0x4025fc
lea ecx, [ebp - 0x478]
push ecx
call fcn.00405fb5
add esp, 4
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
je 0x402595
jmp 0x402706
cmp dword [ebp + 0x18], 0
je 0x4025ac
push 0x40b8dc
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40b8ec
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 0x40b8f4
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 0x4026be
push 0x40b8f8
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 0x40b914
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
lea ecx, [ebp - 0x20c]
push ecx
push 0x4091e0
lea edx, [ebp - 0x208]
push edx
call dword [0x40f4dc]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jge 0x402667
jmp 0x402704
lea eax, [ebp - 0x26c]
push eax
push 0x40b918
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 0x4026be
cmp dword [ebp + 0x18], 0
je 0x4026ab
push 0x40b93c
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 0x4026e1
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
je 0x4026fc
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 0x402708
jmp 0x4026be
jmp 0x4026be
mov esp, ebp
pop ebp
ret