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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c898c
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], 1
push 0x5e0fb0
lea ecx, [ebp - 0x42c]
call fcn.00407bc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x438], 4
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x434], 4
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x438]
push edx
push 0x5e0fd4
push 0x5e0fe8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x431fe6
cmp dword [ebp - 0x43c], 1
jne 0x431fe6
jmp 0x43223f
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x434], 0x104
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x5e1018
push 0x5e1030
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x43204d
mov dword [ebp - 0x424], 2
jmp 0x43223f
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407f30
push 0x5e1060
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43208e
mov dword [ebp - 0x424], 2
jmp 0x43223f
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.005163e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
mov eax, dword [0x645b34]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x430]
call fcn.00407c40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x440]
call fcn.00407bc0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.00421af0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x440]
call fcn.00407db0
lea ecx, [ebp - 0x428]
call fcn.00407c40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x444]
call fcn.00407bc0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x444]
push eax
call fcn.00421af0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x444]
call fcn.00407db0
lea ecx, [ebp - 0x428]
call fcn.004090e0
movzx ecx, al
test ecx, ecx
je 0x43218f
mov dword [ebp - 0x424], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.00407db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.00407db0
jmp 0x43223f
lea ecx, [ebp - 0x430]
call fcn.00407f90
push eax
lea ecx, [ebp - 0x428]
call fcn.00407f90
push eax
call fcn.00416830
add esp, 8
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jge 0x4321da
push 0x5e1084
lea ecx, [ebp - 0x42c]
call fcn.00407f30
mov dword [ebp - 0x424], 0xffffffff
jmp 0x432219
cmp dword [ebp - 0x448], 0
jne 0x4321ff
push 0x5e1088
lea ecx, [ebp - 0x42c]
call fcn.00407f30
mov dword [ebp - 0x424], 0
jmp 0x432219
mov dword [ebp - 0x424], 1
push 0x5e108c
lea ecx, [ebp - 0x42c]
call fcn.00407f30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.00407db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.00407db0
xor edx, edx
jne 0x431f8c
lea ecx, [ebp - 0x42c]
call fcn.00434840
push eax
call fcn.00421d70
mov ecx, eax
call fcn.00437030
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00407db0
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret