Function at 0x4142a0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp byte [edi + 0x12f], 0
je 0x414919
cmp byte [edi + 0x12d], 0
jne 0x4142f5
cmp byte [edi + 0x12e], 0
je 0x414919
mov eax, dword [edi + 0x24c]
sub eax, dword [edi + 0x248]
sar eax, 2
test eax, eax
je 0x414919
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x24c]
sub ecx, dword [edi + 0x248]
xor eax, eax
sar ecx, 2
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x4148d6
lea esp, [esp]
mov edx, dword [edi + 0x248]
mov ecx, dword [edx + eax*4]
lea eax, [edx + eax*4]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x4143be
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4143ae
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4143ae
call fcn.00426710
mov dword [ebp - 0x2c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4143a3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebx, dword [ebp - 0x2c]
add ebx, 0x10
mov dword [ebp - 0x20], ebx
jmp 0x4143be
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x20]
push ecx
call fcn.00401330
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx - 0xc]
cmp eax, dword [ebx - 0xc]
jle 0x414413
mov eax, dword [ebx - 0xc]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00421e70
mov eax, dword [eax]
push ebx
push eax
call fcn.0044fbff
add esp, 8
test eax, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
sete byte [ebp - 0xd]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41440d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
jne 0x414436
mov ecx, dword [edi + 0x24c]
sub ecx, dword [edi + 0x248]
mov eax, dword [ebp - 0x28]
inc eax
sar ecx, 2
mov dword [ebp - 0x28], eax
cmp eax, ecx
jb 0x414360
jmp 0x4148d6
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x24], esp
mov esi, esp
mov dword [ebp - 0x28], eax
call fcn.00426710
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xa0]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0041ccc0
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00421630
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4144a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41457c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41457c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x120], eax
lea edi, [ecx + 0x118]
test eax, eax
je 0x4144ef
push eax
push esi
push str.Failed_to_delete__s_file._Error:__d.
call fcn.00428b20
add esp, 0xc
jmp 0x4144fd
push esi
push str.Failed_to_delete__s_file.
call fcn.00428b20
add esp, 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41451d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414540
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, 0x472154
mov dword [ebp - 0x2c], 0
call fcn.00401110
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0041c720
push ecx
mov byte [ebp - 4], 7
mov edx, esp
mov dword [ebp - 0x30], esp
push edx
mov ecx, 0x472154
call fcn.00401110
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x18]
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x24], esp
mov eax, esi
mov edi, esp
mov dword [ebp - 0x24], esi
call fcn.00426710
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.0041c870
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 9
mov eax, dword [edi + 0xa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414708
mov eax, dword [edi + 0xa0]
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0041be10
test al, al
jne 0x414705
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414685
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x414720
push 0x80004005
call fcn.00401680
mov eax, dword [edi + 0xa0]
push ecx
push eax
call fcn.0044fbff
add esp, 8
test eax, eax
je 0x4147a4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4147a4
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov esi, esp
call fcn.00426710
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0041be10
test al, al
jne 0x4147a1
lea eax, [ebp - 0x14]
call fcn.004245a0
lea eax, [ebp - 0x1c]
call fcn.004245a0
lea eax, [ebp - 0x20]
call fcn.004245a0
lea eax, [ebp - 0x18]
call fcn.004245a0
lea eax, [ebp + 0xc]
call fcn.004245a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x414890
cmp dword [ebp - 0x2c], eax
jne 0x414804
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x120], eax
add edi, 0x118
test eax, eax
je 0x4147f3
mov edx, dword [ebp - 0x1c]
push eax
push edx
push str.Failed_to_copy__s_file._Error:__d.
call fcn.00428b20
add esp, 0xc
jmp 0x414804
mov eax, dword [ebp - 0x1c]
push eax
push str.Failed_to_copy__s_file.
call fcn.00428b20
add esp, 8
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41484a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41486a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414540
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x414540
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4148b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4148d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4148f6
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414919
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41493f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8