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

Disassembly:
push 0xffffffffffffffff
push 0x5b3240
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp esi, ebp
je 0x537e70
cmp dword [esp + 0x44], ebp
je 0x537e70
cmp dword [esp + 0x48], ebp
je 0x537e70
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x537e90
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
mov ecx, 0x621148
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
push ebp
lea ecx, [esp + 0x34]
push ecx
push ebp
mov dword [esp + 0x4c], ebp
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0x5e4104
push SysReAllocStringLen
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
call edi
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x537d98
cmp eax, 1
jne 0x537e67
lea edx, [esp + 0x28]
push edx
mov ecx, 0x104
lea esi, [esp + 0x18]
call fcn.00406ad0
push eax
push ebp
push ebp
push 0x5e4104
push SysReAllocStringLen
call edi
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0058a3a5
add esp, 8
cmp eax, ebp
jl 0x537e86
cmp eax, dword [esi - 8]
jg 0x537e86
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [esp + 0x24]
call fcn.00406560
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00537880
mov esi, dword [esp + 0x2c]
add esp, 8
cmp dword [esi - 0xc], ebp
je 0x537e5e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x537e5e
mov ecx, dword [esp + 0x44]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
mov dword [eax], edx
call fcn.004066e0
lea ecx, [esp + 0x14]
call fcn.004066e0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x24]
call fcn.004066e0
lea ecx, [esp + 0x14]
call fcn.004066e0
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 0x80070057
call fcn.00406af0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edx, dword [0x621148]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x621148
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x24]
push edx
push ebp
push edi
mov dword [esp + 0x50], 2
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push SysReAllocStringLen
call ebx
cmp dword [esp + 0x1c], 1
jne 0x537fe0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
shr ecx, 1
push eax
add ecx, 8
lea esi, [esp + 0x24]
call fcn.00406ad0
push eax
push ebp
push ebp
push edi
push SysReAllocStringLen
call ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0058a3a5
add esp, 8
cmp eax, ebp
jl 0x537e86
cmp eax, dword [esi - 8]
jg 0x537e86
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [esp + 0x24]
call fcn.00406560
push esi
push str._sDefaultIcon
lea edi, [esp + 0x2c]
mov byte [esp + 0x44], 3
call fcn.00406280
mov edi, dword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
push ebp
push edi
push SysReAllocStringLen
mov dword [esp + 0x34], ebp
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x5380d2
cmp eax, 1
je 0x5380d2
lea ecx, [esp + 0x28]
call fcn.00406560
push esi
push str._s_shellopencommand
lea edi, [esp + 0x30]
mov byte [esp + 0x44], 7
call fcn.00406280
mov edi, dword [esp + 0x30]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x24]
push edx
push ebp
push edi
push SysReAllocStringLen
mov dword [esp + 0x34], ebp
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x537fe9
cmp eax, 1
je 0x537fe9
lea ecx, [esp + 0x28]
call fcn.004066e0
lea ecx, [esp + 0x24]
call fcn.004066e0
lea ecx, [esp + 0x20]
jmp 0x537e6b
lea ecx, [esp + 0x14]
call fcn.00406560
mov byte [esp + 0x3c], 8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
shr ecx, 1
push eax
add ecx, 8
lea esi, [esp + 0x18]
call fcn.00406ad0
push eax
push ebp
push ebp
push edi
push SysReAllocStringLen
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0058a3a5
add esp, 8
cmp eax, ebp
jl 0x537e86
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x537e86
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x14]
push 0x20
push eax
call fcn.0058b427
add esp, 8
cmp eax, ebp
jne 0x538064
or eax, 0xffffffff
jmp 0x53806c
sub eax, dword [esp + 0x14]
sar eax, 1
je 0x538095
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
call fcn.004380e0
lea edi, [esp + 0x14]
mov byte [esp + 0x3c], 9
call fcn.00406500
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 8
call fcn.004066e0
lea eax, [esp + 0x14]
call fcn.0051d1ae
mov ebx, eax
mov eax, str.____t
call fcn.0040dd10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
mov dword [eax], ebp
call fcn.004066e0
lea ecx, [esp + 0x28]
jmp 0x5381e5
lea ecx, [esp + 0x2c]
call fcn.00406560
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x40], 4
mov ecx, dword [esp + 0x1c]
shr ecx, 1
add ecx, 8
lea esi, [esp + 0x30]
call fcn.00406ad0
push eax
push ebp
push ebp
push edi
push SysReAllocStringLen
call ebx
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0058a3a5
add esp, 8
cmp eax, ebp
jl 0x537e86
cmp eax, dword [edi - 8]
jg 0x537e86
xor edx, edx
mov dword [edi - 0xc], eax
lea ecx, [esp + 0x14]
mov word [edi + eax*2], dx
call fcn.00406560
push 0x104
mov ecx, 0x104
lea esi, [esp + 0x18]
mov byte [esp + 0x40], 5
call fcn.00406ad0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0058a3a5
add esp, 8
cmp eax, ebp
jl 0x537e86
cmp eax, dword [esi - 8]
jg 0x537e86
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [esp + 0x28]
call fcn.00406560
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 6
call fcn.00537880
mov esi, dword [esp + 0x30]
add esp, 8
cmp dword [esi - 0xc], ebp
je 0x538215
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x538215
mov ecx, dword [esp + 0x44]
push esi
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x28]
mov dword [eax], edx
call fcn.004066e0
lea ecx, [esp + 0x14]
call fcn.004066e0
lea ecx, [esp + 0x2c]
call fcn.004066e0
lea ecx, [esp + 0x24]
call fcn.004066e0
lea ecx, [esp + 0x20]
call fcn.004066e0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x28]
call fcn.004066e0
lea ecx, [esp + 0x14]
call fcn.004066e0
lea ecx, [esp + 0x2c]
jmp 0x537fd2