Function at 0x402850
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x40feb8]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x49c], 0
mov word [ebp - 0x498], 0
mov ecx, 0x14
xor eax, eax
lea edi, [ebp - 0x496]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x440], 1
mov eax, dword [ebp + 0xc]
mov word [eax], 0
lea ecx, [ebp - 0x430]
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.00402ff0
add esp, 8
lea ecx, [ebp - 0x438]
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 - 0x210], eax
cmp dword [ebp + 0x20], 0
je 0x402914
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0
cmp dword [ebp - 0x210], 0
jne 0x40296e
cmp dword [ebp + 0x20], 0
je 0x40292c
mov edx, dword [ebp + 0x20]
mov dword [edx], 1
mov dword [ebp - 0x49c], 0x50
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x498]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x40a5a4
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x210], eax
mov word [ebp - 0x448], 0
cmp dword [ebp - 0x210], 0
je 0x402a1b
push 0x105
lea ecx, [ebp - 0x420]
push ecx
call fcn.004065e0
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4029a3
jmp 0x402b22
cmp dword [ebp + 0x1c], 0
je 0x4029bc
mov edx, dword [ebp + 0x10]
push edx
push 0x40a5bc
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x40a5cc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406720
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.00406720
add esp, 0xc
push 0x40a5d4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406720
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406720
add esp, 0xc
jmp 0x402b22
push 0x40a5d8
push 0xff
lea edx, [ebp - 0x208]
push edx
call fcn.00402520
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x402a45
jmp 0x402b22
lea eax, [ebp - 0x498]
push eax
push 0xff
lea ecx, [ebp - 0x208]
push ecx
call fcn.00401da0
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x402a71
jmp 0x402b22
push 0x40a5f4
push 0xff
lea edx, [ebp - 0x208]
push edx
call fcn.00401da0
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x402a9b
jmp 0x402b22
lea eax, [ebp - 0x43c]
push eax
push 0x40e0c0
lea ecx, [ebp - 0x208]
push ecx
call dword [0x410510]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jge 0x402ac5
jmp 0x402b22
lea edx, [ebp - 0x430]
push edx
push 0x40a5f8
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x43c]
push edx
call dword [ecx + 0x3c]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x428], 0
je 0x402b22
cmp dword [ebp + 0x1c], 0
je 0x402b0b
mov eax, dword [ebp + 0x10]
push eax
push 0x40a61c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp - 0x428]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00406720
add esp, 0xc
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x438], 0
je 0x402b45
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x43c], 0
je 0x402b60
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x43c]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 4]
call fcn.00408ef1
pop edi
mov esp, ebp
pop ebp
ret