Function at 0x407b10
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4fc
mov eax, dword [0x556358]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 0x544e38
mov edx, ebx
mov dword [ebp - 0x4d0], esi
push edi
mov eax, dword [esi]
test eax, eax
cmovne edx, eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407f12
mov eax, dword [esi]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407f12
push 0x208
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004e0850
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
call fcn.004e0850
add esp, 0xc
lea eax, [ebp - 0x470]
push 0x2c
push 0
push eax
call fcn.004e0850
add esp, 0xc
lea ecx, [ebp - 0x470]
push 0xffffffffffffffff
push 0x543194
call fcn.00405730
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi]
lea edx, [ebp - 0x418]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
call fcn.00407770
push 0x2c
lea eax, [ebp - 0x4c8]
push 0
push eax
call fcn.004e0850
mov eax, dword [esi]
lea ecx, [ebp - 0x4c8]
add esp, 0xc
mov edx, ebx
test eax, eax
cmovne edx, eax
call fcn.00407840
push 0x2c
lea eax, [ebp - 0x49c]
push 0
push eax
call fcn.004e0850
add esp, 0xc
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x49c]
call fcn.00407840
mov eax, dword [ebp - 0x498]
mov ecx, dword [ebp - 0x4c4]
cmp eax, ecx
jne 0x407c65
push ecx
push dword [ebp - 0x4c8]
push eax
push ecx
lea ecx, [ebp - 0x49c]
call fcn.00409930
test eax, eax
sete al
test al, al
je 0x407c65
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x470]
call fcn.004056e0
jmp 0x407ca6
mov eax, dword [esi]
lea ecx, [ebp - 0x444]
test eax, eax
mov edx, ebx
cmovne edx, eax
call fcn.00407930
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x470]
call fcn.00405b90
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x407ca6
lea ecx, [ebp - 0x438]
cmp eax, ecx
je 0x407ca6
push eax
call fcn.004e4113
add esp, 4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
mov dword [ebp - 0x4cc], esi
push 0x2c
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.004e0850
add esp, 0xc
lea ecx, [ebp - 0x444]
push 0xffffffffffffffff
push 0x543194
call fcn.00405730
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x444]
call fcn.00405b90
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x444]
call fcn.004095a0
push 0x54515c
lea ecx, [ebp - 0x444]
call fcn.004095a0
test esi, esi
jle 0x407dc4
mov eax, esi
lea ecx, [ebp - 0x4fc]
cdq
push edx
push eax
call fcn.00407aa0
add esp, 8
lea ecx, [ebp - 0x444]
or edi, 0xffffffff
cmp dword [eax + 4], 0xffffffff
mov esi, dword [eax]
cmovbe edi, dword [eax + 4]
mov eax, dword [ebp - 0x440]
push 1
add eax, edi
push eax
call fcn.00405ab0
mov ecx, dword [ebp - 0x440]
lea eax, [edi + edi]
push eax
mov eax, dword [ebp - 0x444]
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004e0df0
mov ecx, dword [ebp - 0x440]
add esp, 0xc
mov eax, dword [ebp - 0x43c]
add ecx, edi
cmp ecx, eax
jb 0x407d81
lea ecx, [eax - 1]
test eax, eax
jne 0x407d89
xor ecx, ecx
jmp 0x407d95
mov eax, dword [ebp - 0x444]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x440], ecx
test eax, eax
je 0x407db8
lea ecx, [ebp - 0x4f0]
cmp eax, ecx
je 0x407db8
push eax
call fcn.004e4113
add esp, 4
mov esi, dword [ebp - 0x4cc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, dword [ebp - 0x444]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
push ecx
call edi
test eax, eax
je 0x407e2a
mov eax, dword [ebp - 0x444]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407e2a
cmp esi, 0xa
jge 0x407e9e
mov eax, dword [ebp - 0x444]
inc esi
mov dword [ebp - 0x4cc], esi
test eax, eax
je 0x407cb4
lea ecx, [ebp - 0x438]
cmp eax, ecx
je 0x407cb4
push eax
call fcn.004e4113
add esp, 4
jmp 0x407cb4
mov eax, dword [ebp - 0x444]
mov edx, ebx
mov esi, dword [ebp - 0x4d0]
test eax, eax
mov ecx, ebx
cmovne edx, eax
push edx
mov eax, dword [esi]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004e7bc8
mov eax, dword [ebp - 0x444]
add esp, 8
test eax, eax
mov ecx, ebx
cmovne ecx, eax
push ecx
call edi
test eax, eax
je 0x407e7c
mov eax, dword [ebp - 0x444]
mov ecx, ebx
test eax, eax
push 5
cmovne ecx, eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esi]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
push ecx
call edi
test eax, eax
je 0x407e9e
mov eax, dword [esi]
test eax, eax
push 5
cmovne ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x407ebb
lea ecx, [ebp - 0x438]
cmp eax, ecx
je 0x407ebb
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x49c]
test eax, eax
je 0x407ed8
lea ecx, [ebp - 0x490]
cmp eax, ecx
je 0x407ed8
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x407ef5
lea ecx, [ebp - 0x4bc]
cmp eax, ecx
je 0x407ef5
push eax
call fcn.004e4113
add esp, 4
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x407f12
lea ecx, [ebp - 0x464]
cmp eax, ecx
je 0x407f12
push eax
call fcn.004e4113
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret