Function at 0x405060
Capabilities:
Delete file
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40d786
push eax
mov eax, 0x1730
mov dword fs:[0], esp
call fcn.0040cf20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1754]
lea eax, [esp + 0xf40]
push edi
push str._s_uninstall
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea ecx, [esp + 0xf4c]
push 0x412650
push ecx
call esi
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4050c8
mov eax, 0xfffffed4
jmp 0x4055fd
push edi
call fcn.00405730
add esp, 4
test eax, eax
jne 0x4050ec
push edi
call fcn.00405650
add esp, 4
test eax, eax
jne 0x4050ec
mov eax, 0x64
jmp 0x4055fd
mov edx, dword [esp + 0x1750]
push 0x412658
push edx
call esi
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
jne 0x405112
mov eax, 0x64
jmp 0x4055fd
push esi
push 1
push 4
push 0x413830
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x413830]
mov ecx, dword [esp + 0x1768]
add esp, 0x10
push 0
push eax
push 0x464
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 0x28]
push 0x11c
lea edx, [esp + 0x2c]
push 1
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jbe 0x4055e8
mov eax, dword [esp + 0x124]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x128]
push esi
mov ebp, eax
push ecx
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x1768]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x55c]
push 0x4121e4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea edx, [esp + 0x540]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0
push str..zgx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1750], 0
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x405234
push eax
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174c], 1
call fcn.0040cb9a
lea ecx, [esp + 0x20]
mov byte [esp + 0x1748], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x540]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
dec eax
je 0x40525e
mov cl, byte [esp + eax + 0x540]
cmp cl, 0x2f
je 0x40525e
cmp cl, 0x5c
je 0x40525e
dec eax
jne 0x40524a
mov ecx, eax
lea esi, [esp + 0x540]
mov edx, ecx
lea edi, [esp + 0xb40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0xb40], 0
lea eax, [esp + 0xb40]
push eax
call fcn.00405730
add esp, 4
test eax, eax
jne 0x4052b0
lea ecx, [esp + 0xb40]
push ecx
call fcn.00405650
add esp, 4
test eax, eax
je 0x4055c4
mov edi, 0x412260
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x540]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x144]
push 0x4125fc
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x412650
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x550]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4055c4
mov ecx, dword [esp + 0x124]
push esi
push ecx
push 1
push ebp
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [esp + 0xb54]
lea eax, [esp + 0x1354]
push edx
push str._ssysoption.ini
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
mov esi, 0x412660
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4053ad
test cl, cl
je 0x4053a9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4053ad
add eax, 2
add esi, 2
test cl, cl
jne 0x405389
xor eax, eax
jmp 0x4053b2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4053f4
cmp dword [esp + 0x1760], 3
jne 0x4053f4
lea eax, [esp + 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1748], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x14]
jmp 0x405146
lea ecx, [esp + 0xb40]
lea edx, [esp + 0x540]
push ecx
push edx
call fcn.00401fc0
add esp, 8
test eax, eax
je 0x4054cd
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x40543e
lea eax, [esp + 0x140]
dec eax
cmp byte [eax + esi], 0x2e
je 0x40543e
dec esi
test esi, esi
jg 0x405433
push 3
lea eax, [esp + esi + 0x144]
push 0x41265c
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4054b7
lea ecx, [esp + 0x140]
lea edx, [esp + 0x940]
push ecx
push 0x4125fc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x140]
lea ecx, [esp + 0x940]
mov byte [esp + esi + 0x13f], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x940]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x1760]
push 1
call fcn.0040c180
lea edx, [esp + 0x540]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 3
push 0
push 0
lea eax, [esp + 0x154]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
lea ecx, [esp + 0x138]
lea edx, [esp + 0x130]
push ecx
lea eax, [esp + 0x12c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
call edi
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
push edi
mov dword [esp + 0x20], ecx
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call ebx
mov edx, dword [esp + 0x2c]
push edi
push 1
lea eax, [esp + 0x158]
push edx
push eax
call ebx
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edx, eax
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea esi, [esp + 0x140]
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1760]
push 0x465
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4053ce
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1748], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x64
jmp 0x4055fd
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1740]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x173c
ret 0x14