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

Disassembly:
push 0xffffffffffffffff
push 0x495a9e
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x240], eax
mov ebp, dword [esp + 0x248]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
mov edi, 1
mov dword [esp + 0x240], edi
push eax
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], eax
push 0x4a5b20
mov esi, ebp
mov word [ebp + 4], cx
call fcn.00402bd0
mov ebx, dword [esp + 0x25c]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x258]
mov eax, ebx
sub eax, edi
sar eax, 7
test eax, eax
jbe 0x4562a5
xor esi, esi
test eax, eax
jbe 0x4562a5
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp esi, eax
jb 0x456134
call fcn.004726ec
mov ebx, dword [esp + 0x25c]
mov edi, dword [esp + 0x258]
cmp dword [edi + ebp + 8], 0
je 0x456258
mov edx, ebx
sub edx, edi
sar edx, 7
cmp esi, edx
jb 0x45615d
call fcn.004726ec
mov ebx, dword [esp + 0x25c]
mov edi, dword [esp + 0x258]
cmp dword [edi + ebp + 0x24], 0
je 0x456258
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.00476ef0
mov edx, ebx
sub edx, edi
sar edx, 7
add esp, 0xc
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x208
cmp esi, edx
jb 0x4561b0
call fcn.004726ec
mov ebx, dword [esp + 0x25c]
mov edi, dword [esp + 0x258]
cmp dword [edi + ebp + 0x44], 8
jb 0x4561c1
mov eax, dword [edi + ebp + 0x30]
mov dword [esp + 0x1c], eax
jmp 0x4561c9
lea ecx, [edi + ebp + 0x30]
mov dword [esp + 0x1c], ecx
mov edx, ebx
sub edx, edi
sar edx, 7
cmp esi, edx
jb 0x4561e7
call fcn.004726ec
mov ebx, dword [esp + 0x25c]
mov edi, dword [esp + 0x258]
cmp dword [edi + ebp + 0x28], 8
lea ebp, [edi + ebp + 0x10]
jb 0x4561f7
mov ebp, dword [ebp + 4]
jmp 0x4561fa
add ebp, 4
sub ebx, edi
sar ebx, 7
cmp esi, ebx
jb 0x45620f
call fcn.004726ec
mov edi, dword [esp + 0x258]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ecx + edi + 8]
push eax
push ebp
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x456246
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456271
mov ebx, dword [esp + 0x25c]
mov edi, dword [esp + 0x258]
mov ebp, dword [esp + 0x18]
mov eax, ebx
sub eax, edi
inc esi
sub ebp, 0xffffff80
sar eax, 7
mov dword [esp + 0x18], ebp
cmp esi, eax
jb 0x456134
jmp 0x4562a1
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456283
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
call fcn.00402bd0
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x240], 2
mov esi, dword [esp + 0x258]
test esi, esi
je 0x4562e3
mov edi, dword [esp + 0x25c]
cmp esi, edi
je 0x4562da
push esi
call fcn.00453030
sub esi, 0xffffff80
cmp esi, edi
jne 0x4562c6
mov esi, dword [esp + 0x258]
push esi
call fcn.00471eaf
add esp, 4
xor eax, eax
mov dword [esp + 0x258], eax
mov dword [esp + 0x25c], eax
mov dword [esp + 0x260], eax
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x24c]
push eax
call fcn.00471eaf
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00471eba
add esp, 0x230
ret 0x1c