Function at 0x404900
Capabilities:
Check if file exists
Create process on windows
Get hostname
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b62b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CPhotoFTPReceive.exe
call fcn.004085dc
call fcn.00401440
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
mov dword [ebp - 0x24], esi
je 0x404c38
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x74]
push eax
push ecx
mov dword [ebp - 0x30], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004085dc
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call fcn.004011c0
add esp, 4
push 0x18
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 2
je 0x4049a2
call fcn.00405e00
mov edi, eax
jmp 0x4049a4
xor edi, edi
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.lyfzphoto1account
call fcn.004085dc
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.photo1account
call fcn.004085dc
push 0x15
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00405e70
test eax, eax
jne 0x404a5b
test edi, edi
je 0x404a04
mov ecx, edi
call fcn.00405e20
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x404a1f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40f258
lea eax, [ebp - 0x14]
push 0x40fd60
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x14]
jmp 0x404c27
lea ecx, [ebp - 0x20]
call fcn.004084c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004084c2
push str._test.dat
lea ecx, [ebp - 0x14]
push 0x40fd60
push ecx
mov byte [ebp - 4], 6
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x404b09
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::CFile
push str._test.dat
lea edx, [ebp - 0x14]
mov bl, 7
push 0x40fd60
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0x1001
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::Open
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x268]
push 0x1f4
push eax
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0040868a
push str._test.dat
lea ecx, [ebp - 0x14]
push 0x40fd60
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x18]
push 0x5c
lea ecx, [ebp - 0x18]
mov esi, dword [edx - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea eax, [ebp - 0x14]
dec esi
lea ecx, [ebp - 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
push 0
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00406bb0
cmp eax, 1
je 0x404c49
test edi, edi
je 0x404bba
mov ecx, edi
call fcn.00405e20
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x404bd8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40f258
lea edx, [ebp - 0x24]
push 0x40fd60
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x404c14
mov ecx, edi
call fcn.00405e20
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x404c14