Function at 0x407ef0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ee7b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x451530]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x451530]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
push 0x44650c
mov edi, ecx
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax]
push 8
push 0
push 0
call edx
push 0x103
lea eax, [esp + 0x239]
push 0
push eax
mov byte [esp + 0x240], 0
call fcn.0042afc0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.0042afc0
add esp, 0xc
push 0x103
lea edx, [esp + 0x341]
push 0
push edx
mov byte [esp + 0x348], 0
call fcn.0042afc0
add esp, 0xc
call fcn.0041674a
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x33c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
jg 0x408024
mov edi, dword [edi + 0x30]
mov eax, dword [edi]
mov edx, dword [eax]
push 0
push 9
push 0
push 0
mov ecx, edi
call edx
xor eax, eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.004286dd
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x408259
cmp eax, dword [edi + 0x18]
jge 0x408259
mov ecx, dword [edi + 0x14]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
lea ebx, [edx + 0x8c]
mov eax, ebx
mov dword [esp + 0x10], edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408050
sub eax, esi
jne 0x408080
lea esi, [edx + 0x10c]
mov edx, dword [edi + 0x38]
push esi
push edx
lea eax, [esp + 0x23c]
push str._s_s.dtm
push eax
call fcn.004294c0
add esp, 0x10
jmp 0x408110
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408085
sub eax, esi
mov esi, eax
cmp esi, 0x104
jb 0x40809c
xor eax, eax
jmp 0x4080ef
push 0x104
lea ecx, [esp + 0x130]
push 0
push ecx
call fcn.0042afc0
add esp, 0xc
push esi
lea edx, [esp + 0x130]
push ebx
push edx
call fcn.00430c10
add esp, 0xc
cmp byte [esp + 0x12c], 0
je 0x4080e4
lea eax, [esp + 0x12c]
cmp byte [eax], 0x5c
jne 0x4080de
mov byte [eax], 0x5f
inc eax
cmp byte [eax], 0
jne 0x4080d6
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x12c]
lea esi, [edx + 0x10c]
push esi
push eax
mov eax, dword [edi + 0x38]
push eax
lea ecx, [esp + 0x240]
push str._s_s__s.dtm
push ecx
call fcn.004294c0
add esp, 0x14
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40816e
mov eax, dword [edi + 0x3c]
push esi
push eax
lea ecx, [esp + 0x2c]
push str._s_s
push ecx
call fcn.004294c0
mov edx, dword [0x4567a0]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408155
mov eax, dword [0x4567a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x4567a0]
push 8
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x408222
cmp byte [ebx], 0
jne 0x40818f
mov eax, dword [edi + 0x3c]
push esi
push eax
lea ecx, [esp + 0x2c]
push str._s_s
push ecx
call fcn.004294c0
add esp, 0x10
jmp 0x408222
call fcn.0040ae6b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40824f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x458], 0
mov ecx, dword [edi + 0x3c]
push ebx
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call fcn.004058e0
lea eax, [esp + 0x20]
push eax
call fcn.00406df0
mov ecx, dword [edi + 0x3c]
add esp, 0x14
push esi
push ebx
push ecx
lea edx, [esp + 0x30]
push str._s_s_s
push edx
call fcn.004294c0
mov dword [esp + 0x46c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jl 0x408020
jmp 0x407fdc
push 0x80004005
call fcn.00401010
call fcn.0040cb9a
int3