Function at 0x407020
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bb3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [0x462650]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.00406220
mov esi, dword [ebp + 0xc]
push 0x2e
push esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x248], 0x10000
call fcn.0042b90b
add esp, 8
test eax, eax
jne 0x40708f
or eax, 0xffffffff
jmp 0x407091
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004055c0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.00404f10
push 0x5c
push esi
mov byte [ebp - 4], 4
call fcn.0042b90b
add esp, 8
test eax, eax
jne 0x4070c9
or eax, 0xffffffff
jmp 0x4070cb
sub eax, esi
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
push eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.00405050
mov ecx, edi
call fcn.00405a70
mov ebx, dword [ebp - 0x24c]
push 0x44f178
push ebx
mov dword [ebp - 4], 3
call fcn.0042ba80
add esp, 8
test eax, eax
push 0x80
push esi
jne 0x40749b
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407182
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407182
push esi
lea edx, [ebp - 0x244]
push 0x44f148
push edx
mov dword [ebp - 0x248], 0x1000a
call fcn.00401290
mov eax, dword [ebp - 0x248]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
push eax
call fcn.004015f0
add eax, 0x10
mov dword [edi + 4], eax
lea eax, [ebx - 0x10]
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40766d
mov eax, dword [ebp + 0x10]
push 2
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0
push esi
call fcn.0041e6e0
lea ecx, [ebp - 0x240]
push ecx
mov ebx, eax
push 0
push ebx
call fcn.0041c790
push 0x5c
push esi
call fcn.0042b90b
add esp, 0x1c
test eax, eax
jne 0x4071c2
or eax, 0xffffffff
jmp 0x4071c4
sub eax, esi
inc eax
push eax
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp + 0xc]
call fcn.00405050
lea ecx, [ebp - 0x23c]
push ecx
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 7
call fcn.004056a0
add esp, 0xc
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebp - 0x250]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x2e
push esi
call fcn.0042b90b
add esp, 8
test eax, eax
jne 0x40723a
or eax, 0xffffffff
jmp 0x40723c
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x250]
call fcn.004055c0
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
call fcn.00401f10
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x24c]
call fcn.00404eb0
lea eax, [ebp - 0x23c]
push eax
call fcn.0043bbc2
mov ecx, dword [ebp - 0x24c]
push 0x44f144
push ecx
call fcn.0042af6c
add esp, 0xc
test eax, eax
jne 0x40735e
lea edx, [ebp - 0x258]
push edx
push ecx
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x25c], esp
push eax
call fcn.00402550
call fcn.0041eb70
add esp, 8
test eax, eax
jne 0x407349
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x248], 0x1000b
call fcn.00401f10
push ebx
call fcn.0041ea10
mov eax, dword [ebp - 0x244]
mov edx, dword [ebp - 0x248]
mov ebx, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov dword [ebx], edx
call fcn.004015f0
add eax, 0x10
mov dword [ebx + 4], eax
lea eax, [edi - 0x10]
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073ca
mov ecx, dword [eax]
push eax
jmp 0x4073c5
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x40735e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40745b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40745b
push edi
lea eax, [ebp - 0x244]
push 0x44f148
push eax
mov dword [ebp - 0x248], 0x1000a
call fcn.00401290
mov ebx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
mov ecx, ebx
call fcn.00404c80
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4073ca
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407430
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
jmp 0x407774
push edi
push 0
push ebx
call fcn.0041e700
push ebx
call fcn.0041ea10
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407629
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x407629
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407611
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407611
push esi
lea eax, [ebp - 0x244]
push 0x44f148
push eax
mov dword [ebp - 0x248], 0x1000a
call fcn.00401290
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x248]
mov edi, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0xc
push eax
mov dword [edi], ecx
call fcn.004015f0
add eax, 0x10
mov dword [edi + 4], eax
lea eax, [ebx - 0x10]
jmp 0x407659
mov eax, dword [ebp + 0x10]
push 2
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
jmp 0x407629
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x248]
mov edi, dword [ebp + 8]
add eax, 0xfffffff0
push eax
mov dword [ebp - 4], 3
mov dword [edi], ecx
call fcn.004015f0
add eax, 0x10
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407677
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40769b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4076b9
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
jmp 0x407774
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042af5e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc