Function at 0x401ec0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4098fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [ecx + 0x5c]
push esi
cmp eax, dword [ecx + 0x60]
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
je 0x402139
push ebx
push ebp
push edi
lea edi, [eax + 0x3c]
mov ebp, 0x10
xor ebx, ebx
cmp dword [edi + 0x24], 2
je 0x40210b
cmp dword [ecx + 0x54], ebp
jb 0x401f16
mov eax, dword [ecx + 0x40]
jmp 0x401f19
lea eax, [ecx + 0x40]
lea esi, [edi - 0x3c]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00401ba0
add esp, 0xc
mov dword [esp + 0x298], ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp byte [edi + 0x20], bl
mov byte [esp + 0x298], 1
push 0x104
je 0x401fcf
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40a1b4
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00401ba0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 2
call fcn.00401680
cmp dword [esp + 0x84], ebp
jb 0x401fb6
mov edx, dword [esp + 0x70]
push edx
call fcn.00403a2d
add esp, 4
mov esi, 0xf
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
jmp 0x402045
lea eax, [esp + 0x190]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x18c]
push 0x5c
push ecx
call fcn.00404080
push esi
lea edx, [esp + 0x198]
mov word [eax], 0x5c
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00401ba0
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a4], 3
call fcn.00401680
cmp dword [esp + 0x68], ebp
jb 0x402030
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00403a2d
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov esi, 0xf
cmp dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x1c]
jae 0x402053
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x402061
lea eax, [esp + 0x38]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402074
mov dword [esp + 0x10], ebx
jmp 0x4020be
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x24], 2
cmp dword [ecx + 0x38], ebp
jb 0x402089
mov ecx, dword [ecx + 0x24]
jmp 0x40208c
add ecx, 0x24
cmp dword [edi + 0x14], ebp
jb 0x402095
mov eax, dword [edi]
jmp 0x402097
mov eax, edi
push ecx
push ebp
lea edx, [edi + 0x18]
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x4020b7
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x30], ebp
jb 0x4020d1
mov eax, dword [esp + 0x1c]
push eax
call fcn.00403a2d
add esp, 4
cmp dword [esp + 0x4c], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x298], 0xffffffff
jb 0x4020fb
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00403a2d
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov eax, dword [ecx + 0x60]
add edi, 0x64
lea edx, [edi - 0x3c]
cmp edx, eax
jne 0x401f02
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
add esp, 0x28c
ret
mov ecx, dword [esp + 0x284]
mov eax, edx
pop esi
mov dword fs:[0], ecx
add esp, 0x28c
ret