Function at 0x419d08
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a0a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x416818]
call fcn.00402468
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x416818]
call fcn.00402468
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a078
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00416f3c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00416f3c
mov eax, dword [ebp - 0xc]
call fcn.00416ab0
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x419cec]
call fcn.00403f68
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00416ab0
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0xc]
call fcn.00416ab0
mov esi, eax
mov eax, dword [ebx + 7]
call fcn.00403dac
test eax, eax
jle 0x419e26
mov eax, dword [ebx + 7]
call fcn.00403db4
mov edx, dword [ebx + 7]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp - 0x1c]
jge 0x419e26
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x419cec]
call fcn.00403f68
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx]
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0x14]
lea edx, [eax + esi]
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
mov eax, dword [ebp - 0xc]
call fcn.00416c30
mov byte [ebp - 0x1d], 0
cmp byte [ebx + 2], 0
je 0x419ef2
mov eax, dword [ebx + 7]
call fcn.00403db4
test eax, eax
jl 0x419f30
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
cmp byte [ebp - 0x1d], 0
jne 0x419e64
mov eax, dword [ebx + 7]
mov eax, dword [eax + esi*8]
mov edx, dword [ebp - 0x14]
mov al, byte [edx + eax]
mov edx, dword [ebx + 0xb]
cmp al, byte [edx + esi]
jne 0x419e8c
inc dword [ebp - 0x18]
mov eax, dword [ebx + 7]
mov edx, dword [eax + esi*8]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0xf]
lea edx, [eax + esi]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
jmp 0x419ee6
push 0x34
mov ecx, 0x41a0bc
mov edx, 0x41a0c4
mov eax, dword [0x42c44c]
mov eax, dword [eax]
call fcn.004194f4
cmp eax, 6
jne 0x419eaf
mov byte [ebp - 0x1d], 1
jmp 0x419e64
mov eax, dword [0x42c438]
cmp byte [eax], 0
je 0x419ed7
mov eax, dword [0x42c3fc]
mov edx, 0x41a12c
call fcn.00403280
call fcn.00401f8c
call fcn.00401350
jmp 0x41a05a
mov eax, 0x41a12c
call fcn.00414abc
jmp 0x41a05a
inc esi
dec dword [ebp - 0x24]
jne 0x419e4a
jmp 0x419f30
mov eax, dword [ebx + 7]
call fcn.00403db4
test eax, eax
jl 0x419f30
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
inc dword [ebp - 0x18]
mov eax, dword [ebx + 7]
mov edx, dword [eax + esi*8]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0xf]
lea edx, [eax + esi]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
inc esi
dec dword [ebp - 0x24]
jne 0x419f04
cmp dword [ebp - 0x18], 0
je 0x419f45
mov eax, dword [ebx + 7]
call fcn.00403dac
cmp eax, dword [ebp - 0x18]
sete byte [ebp - 6]
cmp byte [ebp + 8], 0
je 0x419fd3
cmp byte [ebp - 5], 0
je 0x419fc3
lea eax, [ebp - 0x28]
mov ecx, 0x41a16c
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x28]
call fcn.004030f0
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x2c]
mov ecx, 0x41a16c
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x2c]
call fcn.004030f0
push eax
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x419fc3
mov eax, dword [0x42c438]
cmp byte [eax], 0
je 0x419fc3
mov eax, dword [0x42c3fc]
mov edx, 0x41a17c
call fcn.00403280
call fcn.00401f8c
call fcn.00401350
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00416e68
jmp 0x41a05a
mov al, byte [ebp - 5]
and al, byte [ebp - 6]
je 0x41a049
lea eax, [ebp - 0x30]
mov ecx, 0x41a16c
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x30]
call fcn.004030f0
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x41a16c
mov edx, dword [ebp - 4]
call fcn.00402f44
mov eax, dword [ebp - 0x34]
call fcn.004030f0
push eax
mov eax, dword [ebp - 4]
call fcn.004030f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x41a049
mov eax, dword [0x42c438]
cmp byte [eax], 0
je 0x41a049
mov eax, dword [0x42c3fc]
mov edx, 0x41a17c
call fcn.00403280
call fcn.00401f8c
call fcn.00401350
cmp byte [ebp - 6], 0
je 0x41a05a
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00416e68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a07f
mov eax, dword [ebp - 0xc]
call fcn.00402498
mov eax, dword [ebp - 0x10]
call fcn.00402498
ret