Function at 0x404ccb
Capabilities:
Check if file exists
Get common file path
Persist via run registry key
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe74
push ebx
push esi
push edi
push dword [ebp + 0x10]
push 0x401688
call fcn.00402f81
pop ecx
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
pop ecx
lea eax, [ebp - 0x34]
push 0x20
push eax
push 0xd3
push dword [0x40610c]
call esi
test byte [ebp + 0x1d], 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jne 0x404d18
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x404d1c
or dword [ebp + 0x1c], 8
mov edi, 0x5000
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x405242
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push 0x20
push eax
push 0xd7
push dword [0x40610c]
call esi
and byte [ebp - 0x140], 0
test byte [ebp + 0x1d], 1
jne 0x404d6c
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
jne 0x404d90
lea eax, [ebp - 0x140]
push 0x104
push eax
push 0x4015c4
push 0x401454
push 0x80000001
call fcn.00402ec6
and dword [ebp + 0x1c], 0xfffffffe
lea eax, [ebp - 0x34]
push 0x20
push eax
push 0xd8
push dword [0x40610c]
call esi
test byte [ebp + 0x1c], 0x80
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
jne 0x404dbc
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
jne 0x404dc0
and dword [ebp + 0x1c], 0xfffffffe
lea eax, [ebp - 0x34]
push 0x20
push eax
push 0xdd
push dword [0x40610c]
call esi
test byte [ebp + 0x1d], 2
jne 0x404de6
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
jne 0x404df0
mov eax, dword [ebp + 0x1c]
and al, 0xfe
or al, 0x20
mov dword [ebp + 0x1c], eax
lea eax, [ebp - 4]
push eax
push 0x401770
push 0x401760
call fcn.00402cd1
test eax, eax
jl 0x405242
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x401780
mov ecx, dword [eax]
push eax
call dword [ecx]
push dword [ebp + 8]
push edi
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor ebx, ebx
mov dword [ebp + 8], eax
cmp eax, ebx
jle 0x40520e
push eax
push 0xffffffffffffffff
mov dword [ebp + 0xc], edi
call fcn.004028fa
cmp byte [ebp - 0x140], bl
jne 0x404e9a
push 1
lea eax, [ebp - 0x140]
push 2
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea eax, [ebp - 0x140]
push esi
push eax
call fcn.00403132
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_PathQualify]
cmp dword [ebp + 0x18], ebx
je 0x404ec4
test byte [ebp + 0x1c], 0x20
jne 0x404ec4
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x404ec4
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
test eax, eax
je 0x404ed9
or dword [ebp + 0x1c], 0x10
cmp byte [edi], 0
je 0x40520e
mov esi, dword [sym.imp.SHELL32.dll_Ordinal_58]
mov edi, 0x208
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
push eax
call fcn.00402a33
and byte [ebp - 0x244], 0
test byte [ebp + 0x1c], 0x10
jne 0x404f19
lea eax, [ebp - 0x244]
push 0x104
push eax
push 7
push dword [ebp + 0xc]
call esi
cmp byte [ebp - 0x244], 0
jne 0x404f35
lea eax, [ebp - 0x244]
push 0x104
push eax
push 1
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
inc ebx
push 0
lea eax, [ebp - 0x140]
push ebx
push eax
call fcn.00403132
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_PathQualify]
lea eax, [ebp - 0x44c]
push edi
push eax
push 2
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x405155
cmp byte [ebp - 0x44c], 0
je 0x405155
test byte [ebp + 0x1c], 0x40
jne 0x404fae
push dword [ebp + 8]
or dword [ebp + 0x1c], 0x40
push dword [ebp + 0x10]
call fcn.004028fa
and byte [ebp - 0x654], 0
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsA]
cmp byte [eax], 0
je 0x404fda
and byte [eax - 1], 0
push edi
push eax
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x654]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor ebx, ebx
lea eax, [ebp - 0x44c]
push ebx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
test byte [ebp + 0x1c], 0x20
lea eax, [ebp - 0x44c]
push eax
je 0x40503c
push 2
call dword [sym.imp.SHELL32.dll_SHAddToRecentDocs]
test byte [ebp + 0x1c], 2
jne 0x405033
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00404bdb
test eax, eax
je 0x405029
or dword [ebp + 0x1c], 2
test byte [ebp + 0x1c], 2
je 0x4051e5
push ebx
push ebx
push ebx
push ebx
jmp 0x40513a
call dword [sym.imp.SHELL32.dll_ILCreateFromPath]
mov ebx, eax
test ebx, ebx
je 0x4051e5
mov eax, dword [ebp - 4]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push ebx
call dword [sym.imp.SHELL32.dll_ILFree]
lea eax, [ebp - 0xa64]
push edi
push eax
push 3
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x3c]
push 8
push eax
push 4
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_357]
mov ebx, eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa64]
push ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
lea eax, [ebp - 0x140]
push 0x40129c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
and byte [ebp - 0x85c], 0
lea eax, [ebp - 0x85c]
push edi
push eax
push 6
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x85c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea eax, [ebp - 0x140]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0xe74]
push edi
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_79]
cmp dword [ebp + 0x18], 0
je 0x4050fd
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xe74]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
and dword [ebp + 0x1c], 0xfffffffe
test byte [ebp + 0x1c], 0xa
jne 0x40511a
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00404bdb
test eax, eax
je 0x40511a
or dword [ebp + 0x1c], 2
test byte [ebp + 0x1c], 2
je 0x4051e5
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0xa64]
push ebx
push eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x14]
call fcn.00404a58
jmp 0x4051e5
cmp dword [ebp + 0x18], 0
je 0x4051a4
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + eax - 0x140]
push 0x40129c
push eax
mov dword [ebp - 0x10], eax
call ebx
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_Win32DeleteFile]
push 0x401680
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_Win32DeleteFile]
mov ebx, dword [ebp + 0x1c]
and ebx, 4
jne 0x4051d2
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00404c52
test eax, eax
je 0x4051bf
or dword [ebp + 0x1c], 4
mov ebx, dword [ebp + 0x1c]
and ebx, 4
je 0x4051d2
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00404bdb
test ebx, ebx
je 0x4051e5
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x14]
call fcn.00404b03
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
lea eax, [ebx + eax + 1]
mov dword [ebp + 0xc], eax
jne 0x404eed
cmp dword [ebp + 0x18], 0
je 0x405230
test byte [ebp + 0x1c], 1
je 0x405230
cmp byte [ebp - 0x140], 0
je 0x405230
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_94]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0x10]
push 0x40166c
call fcn.00402f81
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18