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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449bcd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [0x461660]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
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.004298eb
add esp, 8
test eax, eax
jne 0x4073fd
or eax, 0xffffffff
jmp 0x4073ff
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004057b0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.00405100
push 0x5c
push esi
mov byte [ebp - 4], 4
call fcn.004298eb
add esp, 8
test eax, eax
jne 0x407437
or eax, 0xffffffff
jmp 0x407439
sub eax, esi
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
push eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.004051c0
call fcn.0041cca0
add esp, 4
test eax, eax
mov eax, 0x44d0c8
jne 0x407462
mov eax, 0x44d0c0
push eax
push esi
push 0x44d0ac
push 1
call fcn.0041d710
mov ebx, dword [ebp - 0x24c]
add esp, 0x10
push 0x44d0a8
push ebx
mov dword [ebp - 4], 3
call fcn.00429a60
add esp, 8
test eax, eax
push 0x80
push esi
jne 0x407829
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407510
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407510
push esi
lea edx, [ebp - 0x244]
push 0x44d048
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 0x4079fb
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.0041c3a0
lea ecx, [ebp - 0x240]
push ecx
mov ebx, eax
push 0
push ebx
call fcn.0041a450
push 0x5c
push esi
call fcn.004298eb
add esp, 0x1c
test eax, eax
jne 0x407550
or eax, 0xffffffff
jmp 0x407552
sub eax, esi
inc eax
push eax
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp + 0xc]
call fcn.004051c0
lea ecx, [ebp - 0x23c]
push ecx
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 7
call fcn.00405890
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 0x4075a2
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.004298eb
add esp, 8
test eax, eax
jne 0x4075c8
or eax, 0xffffffff
jmp 0x4075ca
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x250]
call fcn.004057b0
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0xa
call fcn.00401f30
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 0x407612
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x24c]
call fcn.004050a0
lea eax, [ebp - 0x23c]
push eax
call fcn.0043a102
mov ecx, dword [ebp - 0x24c]
push 0x44d044
push ecx
call fcn.00429a60
add esp, 0xc
test eax, eax
jne 0x4076ec
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.0041c810
add esp, 8
test eax, eax
jne 0x4076d7
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x248], 0x1000b
call fcn.00401f30
push ebx
call fcn.0041c6d0
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 0x407758
mov ecx, dword [eax]
push eax
jmp 0x407753
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4076ec
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4077e9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4077e9
push edi
lea eax, [ebp - 0x244]
push 0x44d048
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.00404e70
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 0x407758
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 0x40777c
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 0x4077a0
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 0x4077be
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 0x4077e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
jmp 0x407b02
push edi
push 0
push ebx
call fcn.0041c3c0
push ebx
call fcn.0041c6d0
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 0x4079b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4079b7
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 0x40799f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40799f
push esi
lea eax, [ebp - 0x244]
push 0x44d048
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 0x4079e7
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 0x4079b7
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 0x407a05
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 0x407a29
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 0x407a47
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 0x407a6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
jmp 0x407b02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00428f7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10