Function at 0x404130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 1
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40419e
mov dword [ebp - 4], 0xf90
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x40bd34
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x4043c2
push 0x40bd3c
mov edx, dword [ebp + 8]
add edx, 4
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bd50
mov eax, dword [ebp + 8]
add eax, 0x10c
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x214], 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x218], 0
mov eax, dword [ebp + 0xc]
add eax, 0x820
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x21c
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bd68
mov edx, dword [ebp + 8]
add edx, 0x324
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bd78
mov eax, dword [ebp + 8]
add eax, 0x42c
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bd88
mov ecx, dword [ebp + 8]
add ecx, 0x534
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x63c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x640], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x644], 0
push 0x40bd9c
mov edx, dword [ebp + 8]
add edx, 0x648
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x750], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x754], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x758], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x75c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x760], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x764], 0
push 0x40bdbc
mov eax, dword [ebp + 8]
add eax, 0x768
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bdcc
mov ecx, dword [ebp + 8]
add ecx, 0x870
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40be18
mov edx, dword [ebp + 8]
add edx, 0x8c0
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40be64
mov eax, dword [ebp + 8]
add eax, 0x910
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40beb0
mov ecx, dword [ebp + 8]
add ecx, 0x960
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40beb4
mov edx, dword [ebp + 8]
add edx, 0xa68
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40beb8
mov eax, dword [ebp + 8]
add eax, 0xc78
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bebc
mov ecx, dword [ebp + 8]
add ecx, 0xb70
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bec0
mov edx, dword [ebp + 8]
add edx, 0xd80
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bec4
mov eax, dword [ebp + 8]
add eax, 0xe88
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov dword [ebp - 0x10], 0
jmp 0x4043e8
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x324]
test edx, edx
jne 0x4043e8
push 0x40bec8
mov eax, dword [ebp + 8]
add eax, 0x324
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret