Function at 0x4017d0
Capabilities:
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x403c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401a77
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x5c]
push 0x406044
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x401a60
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x406040
push eax
mov byte [esp + 0x5c], 5
call edi
add esp, 8
test eax, eax
je 0x4018e3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x40603c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4018e3
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push str.main.exe
push eax
call edi
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4018e5
mov bl, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x401a58
lea eax, [esp + 0x68]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x60]
mov byte [esp + 0x54], 6
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x68]
push eax
push 0
call sub.MFC42.DLL_CString::Delete
lea edx, [esp + 0x68]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x68]
push eax
push 0
mov byte [esp + 0x5c], 7
call sub.MFC42.DLL_CString::Insert
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [edx + 0x40]
test eax, eax
je 0x4019c5
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x68]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea edx, [esp + 0x64]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x64], 8
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x64], 9
mov ecx, esp
mov dword [esp + 0x3c], esp
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov byte [esp + 0x64], 7
call fcn.004017d0
add esp, 0x10
test eax, eax
je 0x401abc
jmp 0x401a3c
lea edx, [esp + 0x20]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x68]
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401a01
mov dword [0x4062b0], 1
jmp 0x401a3c
mov edx, dword [esp + 0x10]
push 0x40602c
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::Insert
mov eax, dword [esi]
push 2
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, esi
call dword [ebx + 0x40]
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x40185a
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 2
call fcn.004037f2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 2
call fcn.004037f2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x54], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret