Function at 0x402e20
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x403ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x70]
push 0x406044
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x78]
test eax, eax
je 0x403181
test esi, esi
je 0x40331a
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40603c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push str..._backup
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x28]
lea ecx, [esp + 0x44]
push edx
mov ebp, eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x406040
push eax
mov byte [esp + 0x70], 6
call edi
add esp, 8
test eax, eax
je 0x402f83
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x40603c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x402f83
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push str.UpdateState.ini
push eax
call edi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x402f83
lea edx, [esp + 0x24]
lea ecx, [esp + 0x44]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push str.UpState.ini
push eax
call edi
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402f85
mov bl, 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4030ec
lea eax, [esp + 0x18]
lea ecx, [esp + 0x44]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x74]
mov byte [esp + 0x68], 7
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
push eax
push 0
call sub.MFC42.DLL_CString::Delete
push 1
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
mov esi, eax
lea ecx, [esp + 0x18]
push esi
push 0
call sub.MFC42.DLL_CString::Delete
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::Insert
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
push eax
call sub.MFC42.DLL_CString::Insert
mov edx, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [edx + 0x40]
test eax, eax
je 0x40307c
cmp esi, 0xffffffff
je 0x403039
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
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
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x74]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
lea ecx, [esp + 0x50]
mov eax, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x78], 8
call sub.MFC42.DLL_CFileFind::GetFilePath
mov byte [esp + 0x74], 7
call fcn.00402e20
add esp, 0xc
test eax, eax
je 0x403115
jmp 0x4030de
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4030c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4030de
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403115
jmp 0x4030de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403115
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jne 0x402ea3
jmp 0x40331a
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
call fcn.004037f2
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::CFile
push 0
push 0
push str..._backupupfilelist.txt
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], 9
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::GetLength
mov edi, eax
inc edi
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::GetLength
push eax
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x20]
call fcn.00403714
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x68], 0xa
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
test ecx, ecx
mov ebp, esi
mov dword [esp + 0x28], ecx
jle 0x4032f5
cmp byte [edi + esi], 0xd
jne 0x4032ec
mov byte [edi + esi], 0
push ebp
mov byte [esi + edi + 1], 0
push 0
lea ecx, [esp + 0x28]
inc edi
call sub.MFC42.DLL_CString::Insert
push 0x40603c
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString_2
push str..._backup
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xb
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x78]
push ebp
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 0xc
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::Insert
mov ecx, dword [esp + 0x1c]
push ebp
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Insert
mov edx, dword [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x78]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4032b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.bK:_Error__s___d_r_n
call fcn.00401000
add esp, 0xc
jmp 0x4032c8
cmp ebx, 0xffffffff
je 0x4032c8
mov edx, dword [esp + 0x78]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
lea ebp, [esi + edi + 1]
mov byte [esp + 0x68], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x68], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
inc edi
cmp edi, ecx
jl 0x403213
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 2
call fcn.0040389a
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
call fcn.004037f2
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret