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

Disassembly:
push 0xffffffffffffffff
push 0x4099d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [ecx + 0x5c]
push esi
cmp eax, dword [ecx + 0x60]
mov edx, 1
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
je 0x40220b
push ebx
push ebp
push edi
lea ebp, [eax + 0x3c]
mov ebx, 0x10
cmp dword [ebp + 0x24], 2
je 0x4021dd
mov eax, dword [ecx + 0x54]
cmp eax, ebx
lea edi, [ecx + 0x3c]
jb 0x401fa9
mov eax, dword [edi + 4]
jmp 0x401fac
lea eax, [edi + 4]
lea esi, [ebp - 0x3c]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00401b90
add esp, 0xc
xor ecx, ecx
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x1c], cl
mov al, byte [ebp + 0x20]
test al, al
mov byte [esp + 0x1b0], 1
je 0x402079
push 0x104
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x40a1b4
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00401b90
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1bc], 2
call fcn.00401630
cmp dword [esp + 0xa0], ebx
jb 0x402059
mov edx, dword [esp + 0x8c]
push edx
call fcn.00403afd
add esp, 4
mov edi, 0xf
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov byte [esp + 0x8c], 0
jmp 0x402114
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
add eax, 0xfffffff6
push eax
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call fcn.004019a0
push esi
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x1bc], 3
call fcn.00401c40
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1bc], 4
call fcn.00401630
cmp dword [esp + 0x68], ebx
jb 0x4020d2
mov eax, dword [esp + 0x54]
push eax
call fcn.00403afd
add esp, 4
cmp dword [esp + 0x84], ebx
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
jb 0x4020fa
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00403afd
add esp, 4
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
mov edi, 0xf
xor esi, esi
cmp dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x1c]
jae 0x402122
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x38]
jae 0x402130
lea eax, [esp + 0x38]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402143
mov dword [esp + 0x14], esi
jmp 0x40218e
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x24], 2
cmp dword [ecx + 0x38], ebx
jb 0x402158
mov ecx, dword [ecx + 0x24]
jmp 0x40215b
add ecx, 0x24
cmp dword [ebp + 0x14], ebx
jb 0x402165
mov eax, dword [ebp]
jmp 0x402167
mov eax, ebp
push ecx
push ebx
lea edx, [ebp + 0x18]
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
cmp dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x38]
jae 0x402187
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x30], ebx
jb 0x4021a1
mov eax, dword [esp + 0x1c]
push eax
call fcn.00403afd
add esp, 4
cmp dword [esp + 0x4c], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
mov dword [esp + 0x1b0], 0xffffffff
jb 0x4021cc
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00403afd
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
mov eax, dword [ecx + 0x60]
add ebp, 0x64
lea edx, [ebp - 0x3c]
cmp edx, eax
jne 0x401f90
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
add esp, 0x1a4
ret
mov ecx, dword [esp + 0x19c]
mov eax, edx
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret