Function at 0x407830
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509981
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e0
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004e7890
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x98]
push 0x522d80
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [ebp - 0x2a8], 0
add esp, 0xc
mov dword [ebp - 0x2a4], 7
mov word [ebp - 0x2b8], ax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4078d1
mov eax, dword [esi]
push 4
push str..tmp
push 0
push dword [esi + 0x10]
push eax
call fcn.00406390
add esp, 0x14
cmp eax, 0xffffffff
je 0x407a31
xor ecx, ecx
mov dword [ebp - 0x2d8], 0
add eax, 4
mov word [ebp - 0x2e8], cx
cmp dword [esi + 0x10], eax
mov ecx, esi
mov dword [ebp - 0x2d4], 7
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x407920
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x2e8]
call fcn.00405140
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00407e20
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2f0], eax
add esp, 0xc
cmp ecx, eax
je 0x407999
lea ecx, [ebp - 0x2b8]
call fcn.00405280
mov eax, dword [ebp - 0x2f0]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2b8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2a8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x2bc]
cmp edx, 8
jb 0x4079d9
mov ecx, dword [ebp - 0x2d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4079cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407be6
push edx
push ecx
call fcn.0049e956
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c0], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
cmp edx, 8
jb 0x407a81
mov ecx, dword [ebp - 0x2e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407a77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407beb
jmp 0x407a77
push str..tmp
lea eax, [ebp - 0x2e8]
push esi
push eax
call fcn.00407e90
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00407e20
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2f0], eax
add esp, 0x18
cmp ecx, eax
je 0x407999
jmp 0x40795e
push edx
push ecx
call fcn.0049e956
add esp, 8
cmp dword [edi + 0x10], 0
je 0x407b2d
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x2a0]
push 0x104
push eax
call fcn.004ef497
lea ecx, [ebp - 0x2a0]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ac4
sub ecx, edx
lea eax, [ebp - 0x2a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00405140
mov ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [edi + 0x10]
cmp ecx, 8
jb 0x407af5
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x5c
je 0x407b17
push 1
push 0x522d98
push 0
lea ecx, [ebp - 0x2b8]
call fcn.00407cb0
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
cmp ecx, 8
jb 0x407b1e
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0x2b8]
call fcn.00407cb0
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
cmovae eax, dword [ebp - 0x2b8]
cmp dword [esi + 0x14], 8
jb 0x407b49
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x407b7f
cmp dword [ebp - 0x2a4], 8
lea eax, [ebp - 0x2b8]
push 4
cmovae eax, dword [ebp - 0x2b8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne byte [ebp - 0x2e9]
jmp 0x407b86
mov byte [ebp - 0x2e9], 0
mov edx, dword [ebp - 0x2a4]
cmp edx, 8
jb 0x407bc2
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407bb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407be6
push edx
push ecx
call fcn.0049e956
add esp, 8
mov al, byte [ebp - 0x2e9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e9a8c
call fcn.004e9a8c
int3