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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb6d6
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4e7d04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
mov eax, dword [ebp - 0x250]
cmp dword [eax + 0xc], 0
je 0x45b032
mov ecx, dword [ebp - 0x250]
add ecx, 0x10
call fcn.00402e80
movzx ecx, al
test ecx, ecx
je 0x45b03c
mov eax, 1
jmp 0x45b2f8
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0x250]
add ecx, 0x14
call fcn.00402e80
movzx edx, al
test edx, edx
jne 0x45b06f
mov ecx, dword [ebp - 0x250]
add ecx, 0x14
call fcn.00402e20
mov dword [ebp - 0x228], eax
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00482260
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
mov dword [ebp - 0x220], 1
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x250]
add ecx, 0x10
call fcn.00402e20
push eax
mov edx, dword [ebp - 0x250]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00403ac0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00402ad0
lea ecx, [ebp - 0x224]
call fcn.00402a80
lea ecx, [ebp - 0x224]
call fcn.00402e80
movzx edx, al
test edx, edx
je 0x45b13c
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00404680
mov eax, dword [ebp - 0x230]
jmp 0x45b2f8
push 0x4c5b48
push 1
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402c00
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00402d60
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x238]
call fcn.00404680
movzx edx, byte [ebp - 0x231]
test edx, edx
je 0x45b1de
lea ecx, [ebp - 0x224]
call fcn.00404290
sub eax, 1
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402b70
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x224]
call fcn.004027b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.00404680
push 0x4c5b4c
push 1
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402b70
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
push ecx
call fcn.00402d60
add esp, 8
mov byte [ebp - 0x23d], al
lea ecx, [ebp - 0x244]
call fcn.00404680
movzx edx, byte [ebp - 0x23d]
test edx, edx
je 0x45b280
lea ecx, [ebp - 0x224]
call fcn.00404290
sub eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402c00
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x268], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x268]
push edx
lea ecx, [ebp - 0x224]
call fcn.004027b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00404680
mov ecx, dword [ebp - 0x250]
add ecx, 0x18
call fcn.00402e80
movzx eax, al
test eax, eax
jne 0x45b2c8
mov ecx, dword [ebp - 0x250]
add ecx, 0x18
call fcn.00402e20
push eax
push 0x104
lea ecx, [ebp - 0x224]
call fcn.00402e30
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.004039b0
lea ecx, [ebp - 0x224]
call fcn.00402e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00404680
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004820d9
mov esp, ebp
pop ebp
ret