Function at 0x401c80
Capabilities:
Copy file
Create process on windows
Create process suspended

Disassembly:
push 0xffffffffffffffff
push 0x4027b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 4
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x80], 1
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push str..dat
push eax
mov byte [esp + 0x80], 2
call ebp
add esp, 8
test eax, eax
je 0x401d19
mov edi, str..download
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str..download
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401d1b
mov bl, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401e0d
xor edx, edx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0x44
call fcn.00401844
push ecx
lea eax, [esp + 0x84]
mov bl, 3
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push ecx
call fcn.00401b80
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 4
call fcn.0040186e
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
mov esi, dword [esp + 0x84]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xac]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x84]
push ecx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x401f34
mov edi, str..dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str..dat
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401ead
lea eax, [esp + 0x80]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
push str..exe
push str..dat
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x80]
push eax
call fcn.0040186e
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
push eax
call fcn.00401b80
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x34]
mov edx, dword [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x3c
push ecx
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x4c], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [esp + 0x64]
mov esi, eax
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x14]
mov dword [eax], edx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov dword [esp + 0x78], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret