Function at 0x401fc8
Capabilities:
Delete file
Get file size
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x402e44
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1748
call fcn.00402b50
push ebx
push esi
push edi
lea eax, [ebp - 0x1354]
push dword [ebp + 0xc]
push str._s_uninstall
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
mov esi, 0x80
lea eax, [ebp - 0x1354]
push esi
push eax
call edi
lea eax, [ebp - 0x1354]
push 0x4051d0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x28], eax
jne 0x402033
mov eax, 0xfffffed4
jmp 0x4024fd
push dword [ebp + 0xc]
call fcn.004025f7
test eax, eax
pop ecx
jne 0x402051
push dword [ebp + 0xc]
call fcn.00402537
test eax, eax
pop ecx
je 0x4024e4
push 0x4051d8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x4024e4
push eax
push 1
push 4
push 0x405444
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 0x11c
lea eax, [ebp - 0x154]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x20]
lea eax, [ebp - 0x154]
push 0x11c
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
test eax, eax
jbe 0x4024e9
push dword [ebp - 0x54]
call sub.MFC42.DLL_operatornew
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x54]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x954]
push dword [ebp + 0xc]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
lea eax, [ebp - 0x954]
push esi
push eax
call edi
lea eax, [ebp - 0x954]
lea ecx, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::CString_1
push ebx
push str..zgx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jle 0x40214f
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push esi
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x954]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
dec eax
mov dword [ebp - 0x14], eax
je 0x402173
mov cl, byte [ebp + eax - 0x954]
cmp cl, 0x2f
je 0x402173
cmp cl, 0x5c
jne 0x40215c
push eax
lea eax, [ebp - 0x954]
push eax
lea eax, [ebp - 0xf54]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0xf54], bl
lea eax, [ebp - 0xf54]
push eax
call fcn.004025f7
add esp, 0x10
test eax, eax
jne 0x4021b9
lea eax, [ebp - 0xf54]
push eax
call fcn.00402537
test eax, eax
pop ecx
je 0x4024cf
lea eax, [ebp - 0xf54]
push 0x405138
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x954]
push eax
lea eax, [ebp - 0x554]
push 0x405098
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x554]
push esi
push eax
call edi
lea eax, [ebp - 0x954]
push str..tmp
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x954]
push 0x4051d0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4024cf
push eax
push dword [ebp - 0x54]
push 1
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 0xf54]
push eax
lea eax, [ebp - 0x1754]
push str._ssysoption.ini
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x154]
push str.sysoption.ini
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x28
test eax, eax
jne 0x4022ac
lea eax, [ebp - 0x1754]
push eax
call fcn.00402995
test eax, eax
pop ecx
je 0x4022ac
lea eax, [ebp - 0x954]
push esi
push eax
call edi
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x40207f
lea eax, [ebp - 0xf54]
push eax
lea eax, [ebp - 0x954]
push eax
call fcn.00401000
pop ecx
test eax, eax
pop ecx
je 0x40242b
push ebx
push esi
push 3
push ebx
push ebx
lea eax, [ebp - 0x554]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
call dword [sym.imp.MSVCRT.dll_rand]
push 0x1e
cdq
pop ecx
idiv ecx
inc edx
shl edx, 0xc
push edx
mov dword [ebp - 0x24], edx
call sub.MFC42.DLL_operatornew
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x402377
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
jbe 0x40233b
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx], dl
inc eax
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jb 0x40231b
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x554]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jle 0x4023a9
lea ecx, [ebp - 0x554]
dec ecx
cmp byte [ecx + eax], 0x2e
je 0x4023a9
dec eax
cmp eax, ebx
mov dword [ebp - 0x10], eax
jg 0x40239b
push 3
lea eax, [ebp + eax - 0x554]
push 0x4051dc
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x40242b
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0xb54]
push 0x405098
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [ebp + eax - 0x555], bl
lea eax, [ebp - 0x554]
push esi
push eax
call edi
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0xb54]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x554]
push 1
push eax
call edi
lea eax, [ebp - 0xb54]
push esi
push eax
call edi
lea eax, [ebp - 0xb54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x954]
push esi
push eax
call edi
lea eax, [ebp - 0x954]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push esi
push 3
push ebx
push ebx
lea eax, [ebp - 0x554]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x554]
push eax
call sub.MSVCRT.dll_strlen
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebp - 0x28]
lea eax, [ebp - 0x554]
push 1
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x24
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x554]
push 1
push eax
call edi
jmp 0x402292
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 0x64
pop eax
jmp 0x4024fd
push dword [ebp - 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push dword [ebp - 0x28]
call esi
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8