Function at 0x42a5c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov word [ebp - 0x448], 0
push 0x206
push 0
lea eax, [ebp - 0x446]
push eax
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x220], 0
push 0x206
push 0
lea ecx, [ebp - 0x21e]
push ecx
call fcn.0049e690
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x44c], 1
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
push 0x596a44
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x42a6ba
push 0x596a50
mov ecx, dword [ebp + 8]
call fcn.00401600
mov eax, dword [ebp - 0x454]
or eax, 1
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 8]
jmp 0x42a8c7
lea ecx, [ebp - 0x22c]
push ecx
push 0x20019
push 0
push str.shell
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x42a70a
push 0x596a60
mov ecx, dword [ebp + 8]
call fcn.00401600
mov eax, dword [ebp - 0x454]
or eax, 1
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 8]
jmp 0x42a8c7
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push str.opencommand
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x42a75d
push 0x596a80
mov ecx, dword [ebp + 8]
call fcn.00401600
mov eax, dword [ebp - 0x454]
or eax, 1
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 8]
jmp 0x42a8c7
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x596a84
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x448]
push ecx
call fcn.004a1a95
add esp, 4
mov dword [ebp - 0x224], eax
push 0x596a88
mov edx, dword [ebp - 0x224]
push edx
call fcn.00419910
add esp, 8
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x42a80a
push 0x596a8c
mov ecx, dword [ebp + 8]
call fcn.00401600
mov eax, dword [ebp - 0x454]
or eax, 1
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 8]
jmp 0x42a8c7
mov ecx, dword [ebp - 0x450]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x238], edx
push 0x596a90
mov eax, dword [ebp - 0x224]
push eax
call fcn.00419910
add esp, 8
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x42a869
push 0x596a94
mov ecx, dword [ebp + 8]
call fcn.00401600
mov ecx, dword [ebp - 0x454]
or ecx, 1
mov dword [ebp - 0x454], ecx
mov eax, dword [ebp + 8]
jmp 0x42a8c7
mov edx, dword [ebp - 0x450]
mov word [edx], 0
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a8a6
push 0x596a98
mov ecx, dword [ebp + 8]
call fcn.00401600
mov ecx, dword [ebp - 0x454]
or ecx, 1
mov dword [ebp - 0x454], ecx
mov eax, dword [ebp + 8]
jmp 0x42a8c7
mov edx, dword [ebp - 0x238]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401600
mov eax, dword [ebp - 0x454]
or eax, 1
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret