Function at 0x4107f0
Capabilities:
Access peb ldr_data
Copy file
Create directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4280e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::ReverseFind
xor ebx, ebx
cmp eax, ebx
jge 0x410844
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x41087a
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::CString_1
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.INIpay
lea ecx, [esp + 0x14]
call fcn.00426a0a
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41095a
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.MSVCRT.dll__chmod]
add esp, 8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x10]
push ebx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x41094c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [eax + 0x40]
cmp eax, ebx
jne 0x41094c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x10]
push ecx
call esi
test eax, eax
je 0x41094c
mov edx, dword [esp + 0x10]
push ebx
push edx
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 5
call fcn.00426a64
push 0x432860
lea ecx, [esp + 0x14]
call fcn.00426a0a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
cmp dword [esp + 0x58], ebx
je 0x410998
push 0x43285c
lea ecx, [esp + 0x18]
call fcn.00426a0a
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
push 1
push ebx
push 0x400
push 0x5e6
push ebx
add edi, 0x23c
push 0x1388
push edx
push eax
mov ecx, edi
call fcn.00411e80
lea ecx, [esp + 0x1c]
mov ebp, eax
call sub.MFC42.DLL_CString::CString_1
cmp ebp, ebx
mov byte [esp + 0x48], 7
pop ebp
jne 0x4109e5
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00411c00
jmp 0x410a4c
cmp dword [esp + 0x54], ebx
je 0x410a30
mov edx, dword [esp + 0x10]
push edx
call fcn.004201e0
add esp, 4
test eax, eax
jne 0x410a03
mov eax, dword [esp + 0x4c]
push eax
jmp 0x410a4a
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0xc]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x410a26
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x410a4a
mov edx, dword [esp + 0xc]
push edx
jmp 0x410abd
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x410ab8
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc
mov eax, dword [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc