Function at 0x401e80
Capabilities:
Check if file exists
Copy file
Get file attributes
Get file size
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x404e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 1
call sub.MFC42u.DLL_CString::MakeUpper
push 0x408210
lea ecx, [esp + 0x5c]
call sub.MFC42u.DLL_CString::Find_1
or ebp, 0xffffffff
cmp eax, ebp
jne 0x402148
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebp
je 0x402148
mov ecx, dword [esp + 0x54]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebp
jne 0x401f22
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.00404554
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], ebp
call fcn.00404554
xor eax, eax
jmp 0x402172
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ecx, [eax + eax]
push ecx
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x402126
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42u.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x58], 2
call sub.MFC42u.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x54], 1
call fcn.00402de0
cmp eax, ebx
je 0x402126
lea ecx, [esp + 0x58]
call sub.MFC42u.DLL_CString::LockBuffer
push eax
push 0x402190
lea ecx, [esp + 0x5c]
call sub.MFC42u.DLL_CString::LockBuffer
push eax
push str.Files
mov ecx, edi
call fcn.00401a00
test eax, eax
je 0x402126
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x408518]
push edx
push eax
push esi
push str.Files
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402002
push esi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402126
cmp word [esi], bx
mov eax, esi
je 0x40203f
cmp word [eax], 0x3d
je 0x402025
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
je 0x402126
cmp cx, 0x3d
jne 0x40200f
cmp word [eax], bx
je 0x402037
mov word [eax], 0x20
add eax, 2
cmp word [eax], bx
jne 0x40202a
add eax, 2
cmp word [eax], bx
jne 0x402009
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
push edx
stosw word es:[edi], ax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], 0x40
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x402088
push esi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402126
cmp dword [esp + 0x36], ebx
je 0x402101
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov edi, dword [esp + 0x18]
xor esi, esi
cmp edi, ebx
mov byte [esp + 0x4c], 3
jle 0x4020f3
mov ecx, dword [0x408514]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402118
push esi
mov ecx, 0x408510
call fcn.00403240
mov edx, dword [eax]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [esp + 0x20]
call fcn.004010f0
mov ecx, dword [0x408514]
mov edx, dword [ecx + esi*4]
cmp dword [edx + 8], eax
jne 0x402118
inc esi
cmp esi, edi
jl 0x4020ac
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.00404554
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.00404554
mov dword [esp + 0x4c], 0xffffffff
jmp 0x402164
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.00404554
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.00404554
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00404554
xor eax, eax
jmp 0x402172
xor ebx, ebx
push ebp
push ebx
push 0x6d
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], bl
call fcn.00404554
mov dword [esp + 0x4c], ebp
lea ecx, [esp + 0x58]
call fcn.00404554
mov eax, 1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 8