Function at 0x407bc0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6308f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.004830f0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push str.OfficeOnCloudCloudInput___restart
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
or esi, 0xffffffff
test eax, eax
jne 0x407d69
push str.GSoSoftGSoInput___restart
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x407ca6
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x407c94
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x407c94
push edx
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x407c8c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x407ca0
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401e40
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407cc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x407d69
push str.GeekSoftGeekInput___restart
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.00411d40
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x407d42
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x407d30
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x407d30
push edx
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x407d28
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x407d3c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401e40
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x407d7d
push 4
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 1
jmp 0x407d7f
xor edi, edi
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x407dbc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret