Function at 0x4031df
Capabilities:
Move file
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x4049a0
call fcn.004043c0
sub esp, 0xf2c
push ebx
push esi
push edi
mov esi, ecx
mov al, byte [ebp + 0xb]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov edi, 0x104
lea eax, [ebp - 0x338]
push edi
push ebx
push eax
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_memset
push dword [esi + 0x68]
lea eax, [ebp - 0x338]
push eax
call sub.MSVCRT.dll_strcpy
push edi
lea eax, [ebp - 0x130]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x130]
push str._updateV_
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x130]
push 0x50
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040254a
add esp, 0x40
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push 0x407cf8
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [esi + 0xf8]
push eax
mov byte [ebp - 4], 2
call fcn.0040414e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
lea eax, [ebp - 0x738]
push eax
call fcn.00401e75
push dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0xf38]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0xf38]
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4033da
push 0x400
lea eax, [ebp - 0xb38]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0xb38]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
lea ecx, [ebp + 8]
push 0x2f
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Mid
push dword [eax]
lea eax, [ebp - 0xb38]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0xb38]
mov ecx, esi
push eax
call fcn.00403598
lea eax, [ebp - 0xf38]
push str..dat
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0xf38]
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov dword [esi + 0x128], 1
jne 0x4033da
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00403e2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x403587
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
jne 0x4033e6
xor edi, edi
jmp 0x4033ec
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x20]
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
mov dword [ebp - 0x14], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x14]
call sub.MSVCRT.dll_memset
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_memcpy
add esp, 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, ebx
je 0x403437
push str.WriteFile_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push 0x407cc4
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esi + 0xf8]
mov byte [ebp - 4], 3
call fcn.0040414e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push ebx
push 0x64
push 0x402
push dword [esi + 0xd8]
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
cmp edi, ebx
je 0x40356d
push str.libAmy.dll
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4034fc
push 0x104
lea eax, [ebp - 0x234]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [esi + 0x104]
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.004028a0
cmp dword [esi + 0x128], ebx
je 0x40356d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator_2
push str..dat
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator_2
push 5
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00403e2d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4