Function at 0x4061e0
Capabilities:
Delete file
Get common file path
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d9e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
mov dword [ebp - 0x198], ecx
mov eax, dword [ebp + 0x408]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.update_
mov ecx, dword [ebp + 0x408]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x408]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push str..exe
mov ecx, dword [ebp + 0x408]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x194], 0
push 0x104
lea edx, [ebp - 0x120]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x411738
lea ecx, [ebp - 0x120]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x120]
push edx
call fcn.00406173
add esp, 4
mov dword [ebp - 0x194], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x194]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004060d8
add esp, 8
test eax, eax
jne 0x4062eb
jmp 0x4064fe
push 0
mov eax, dword [ebp - 0x194]
push eax
push str..HL.
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040604d
add esp, 0x10
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
jne 0x406327
push 0
push 0
push 0x41174c
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4064fe
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [0x411414], eax
mov eax, dword [ebp + 8]
push eax
push 0x411768
push 0x4112e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp + 0x2fe]
cmp ecx, 0x41210c
jne 0x406381
push str.Null
push 0x41144a
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x406395
lea edx, [ebp + 0x2fe]
push edx
push 0x41144a
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
lea eax, [ebp + 0x2cc]
cmp eax, 0x412110
jne 0x4063cb
push str.Default
push 0x41177c
push 0x411418
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x4063e5
lea ecx, [ebp + 0x2cc]
push ecx
push 0x411780
push 0x411418
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp + 0x400]
mov dword [0x411550], edx
mov eax, dword [ebp + 0x404]
mov dword [0x41154c], eax
mov ecx, dword [0x411550]
push ecx
mov edx, dword [ebp + 0x400]
push edx
push str.Method__d:_d
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x26c
push 0x4112e8
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x124]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x411794
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4064b5
mov eax, dword [ebp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
push 0x4117a4
push 0x4117ac
mov ecx, dword [ebp - 0x198]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x4064fe
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x194]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x404