Function at 0x408af0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6438b7
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x7e
mov esi, ecx
push eax
lea ecx, [ebp - 0x8e]
push ecx
mov word [ebp - 0x90], ax
call fcn.005de050
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x90]
push 0x688780
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x2a0], 7
mov dword [ebp - 0x2a4], eax
mov word [ebp - 0x2b4], cx
push 4
push eax
push str..tmp
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00402580
cmp eax, 0xffffffff
je 0x408bbc
add eax, 4
push eax
push 0
lea edx, [ebp - 0x2ec]
push edx
mov ecx, esi
call fcn.00401e00
lea ecx, [ebp - 0x90]
push ecx
push eax
lea edx, [ebp - 0x2d0]
push edx
mov byte [ebp - 4], 1
call fcn.0040ac00
add esp, 0xc
mov byte [ebp - 4], 2
jmp 0x408bed
push str..tmp
lea eax, [ebp - 0x2ec]
push esi
push eax
call fcn.0040aa60
lea ecx, [ebp - 0x90]
push ecx
push eax
lea edx, [ebp - 0x2d0]
push edx
mov byte [ebp - 4], 3
call fcn.0040ac00
add esp, 0x18
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00402260
cmp dword [ebp - 0x2bc], 8
jb 0x408c11
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x2d8], 8
mov word [ebp - 0x2d0], cx
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], 7
jb 0x408c45
mov edx, dword [ebp - 0x2ec]
push edx
call fcn.004effaf
add esp, 4
cmp dword [edi + 0x10], 0
je 0x408cef
cmp dword [ebp - 0x2a0], 8
mov eax, dword [ebp - 0x2b4]
jae 0x408c64
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x298]
push 0x104
push eax
call fcn.005dfa9d
lea eax, [ebp - 0x298]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408c90
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x2b4]
call fcn.00403600
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x408cbf
mov eax, dword [edi]
jmp 0x408cc1
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x408cdd
push 1
push 0x688728
push 0
lea ecx, [ebp - 0x2b4]
call fcn.0040a040
push 0xffffffffffffffff
push 0
push edi
push 0
lea ecx, [ebp - 0x2b4]
call fcn.00409ec0
mov eax, dword [ebp - 0x2b4]
mov ecx, 8
cmp dword [ebp - 0x2a0], ecx
jae 0x408d08
lea eax, [ebp - 0x2b4]
cmp dword [esi + 0x14], ecx
jb 0x408d0f
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x408d6f
mov eax, dword [ebp - 0x2b4]
mov esi, 8
cmp dword [ebp - 0x2a0], esi
jae 0x408d34
lea eax, [ebp - 0x2b4]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408d54
cmp dword [ebp - 0x2a0], esi
jb 0x408d87
mov edx, dword [ebp - 0x2b4]
push edx
jmp 0x408d7f
cmp dword [ebp - 0x2a0], esi
jb 0x408d6b
mov eax, dword [ebp - 0x2b4]
push eax
call fcn.004effaf
add esp, 4
mov al, 1
jmp 0x408d89
cmp dword [ebp - 0x2a0], 8
jb 0x408d87
mov ecx, dword [ebp - 0x2b4]
push ecx
call fcn.004effaf
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret