Function at 0x40284d
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 + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0x484]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x18]
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 + 0x20], 0
je 0x4028eb
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0
cmp dword [ebp - 0x488], 0
jne 0x402933
cmp dword [ebp + 0x20], 0
je 0x402903
mov edx, dword [ebp + 0x20]
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 0x40b7cc
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 0x4029db
lea ecx, [ebp - 0x478]
push ecx
call fcn.00406350
add esp, 4
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
je 0x402963
jmp 0x402aeb
cmp dword [ebp + 0x1c], 0
je 0x40297c
mov edx, dword [ebp + 0x10]
push edx
push 0x40b7e4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x40b7f4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004063a0
add esp, 0xc
mov eax, dword [ebp + 0x18]
add eax, 0x820
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004063a0
add esp, 0xc
push 0x40b7fc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004063a0
add esp, 0xc
lea edx, [ebp - 0x478]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004063a0
add esp, 0xc
jmp 0x402aa3
push 0x40b800
lea edx, [ebp - 0x208]
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b81c
lea edx, [ebp - 0x208]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push 0x4091e0
lea ecx, [ebp - 0x208]
push ecx
call dword [0x40f49c]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jge 0x402a46
jmp 0x402ae9
lea edx, [ebp - 0x26c]
push edx
push 0x40b820
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20c]
push edx
call dword [ecx + 0x3c]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x264], 0
je 0x402aa3
cmp dword [ebp + 0x1c], 0
je 0x402a8c
mov eax, dword [ebp + 0x10]
push eax
push 0x40b844
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004063a0
add esp, 0xc
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x484], 0
je 0x402ac6
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
je 0x402ae1
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20c]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x47c]
jmp 0x402aed
jmp 0x402aa3
jmp 0x402aa3
mov esp, ebp
pop ebp
ret