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

Disassembly:
sub esp, 0x314
mov dl, byte [0x451020]
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x118]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push str.SavePath
push str.SOFTWARE360SafeLeak
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4140ce
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4140c2
mov ecx, 0x41
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push 0x45012c
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x13], 0x5c
je 0x41419a
jmp 0x41416c
lea edi, [esp + 0x118]
jmp 0x4141e3
mov cl, byte [0x451020]
xor eax, eax
mov byte [esp + 0x21c], cl
mov ecx, 0x40
lea edi, [esp + 0x21d]
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x21c]
push str...hotfix
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4141dc
mov ecx, 0x41
lea edi, [esp + 0x14]
lea edx, [esp + 0x21c]
rep stosd dword es:[edi], eax
push edx
push 0x45012c
lea eax, [esp + 0x1c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x13], 0x5c
je 0x41419a
mov edi, 0x4500fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push eax
call fcn.00403f90
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x328]
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
push ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x314
ret 4
lea edi, [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x324]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x314
ret 4