Function at 0x1008896
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], edi
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
mov ebx, 0x10025dc
push ebx
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x41c], edi
mov edi, 0x1002380
push edi
mov esi, 0x80000002
push esi
call fcn.01012bef
xor ecx, ecx
mov dword [ebp - 0x418], eax
cmp eax, ecx
je 0x100896e
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1008955
test byte [ecx + 0x1c], 1
je 0x1008955
push eax
push 0x1002040
push 0x7f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
mov eax, dword [ebp - 0x418]
test eax, eax
jle 0x1008963
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
jmp 0x1008c83
cmp dword [ebp + 8], ecx
je 0x100899a
cmp dword [ebp - 0x424], 1
jne 0x10089d5
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10089c9
test byte [eax + 0x1c], 4
je 0x10089c9
push 0x1002040
push 0x80
jmp 0x10089be
cmp dword [ebp - 0x424], ecx
jne 0x10089d5
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10089c9
test byte [eax + 0x1c], 4
je 0x10089c9
push 0x1002040
push 0x81
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
and dword [ebp - 0x418], 0
jmp 0x1008c83
xor eax, eax
cmp dword [ebp + 8], ecx
setne al
push eax
push ebx
push ecx
push edi
push esi
call fcn.01012d36
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1008a32
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1008a17
test byte [eax + 0x1c], 1
je 0x1008a17
push edi
push 0x1002040
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
cmp edi, ebx
jle 0x1008a27
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp - 0x418], edi
jmp 0x1008c83
mov ecx, dword [ebp - 0x420]
cmp dword [ebp + 8], ebx
je 0x1008a94
call fcn.0100729b
cmp eax, ebx
jge 0x1008a72
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1008a85
test byte [ecx + 0x1c], 1
je 0x1008a85
push eax
push 0x1002040
push 0x83
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x1008a85
push 1
push 0x1002488
push ebx
push 0x1002090
push esi
call fcn.01012d36
mov dword [ebp - 0x418], 0x8000000a
jmp 0x1008c83
push 1
push ebx
mov esi, 0x10025c8
push esi
call fcn.0100701e
mov edi, 0x1002040
test eax, eax
jge 0x1008ad5
mov eax, dword [0x1035014]
mov ebx, 0x1035014
cmp eax, ebx
je 0x1008ada
test byte [eax + 0x1c], 2
je 0x1008ada
push 0
push esi
push edi
push 0x84
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x1008ada
mov ebx, 0x1035014
lea eax, [ebp - 0x414]
push eax
push 0x1002518
xor esi, esi
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
cmp eax, esi
mov dword [ebp - 0x418], eax
jge 0x1008b22
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x1008c83
test byte [eax + 0x1c], 1
je 0x1008c83
push dword [ebp - 0x418]
push edi
push 0x85
jmp 0x1008b70
mov ecx, dword [ebp - 0x420]
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01006adb
cmp eax, esi
mov dword [ebp - 0x418], eax
jge 0x1008b80
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x1008c83
test byte [eax + 0x1c], 1
je 0x1008c83
push dword [ebp - 0x418]
push edi
push 0x86
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1008c83
mov ebx, dword [ebp - 0x428]
jmp 0x1008c50
push dword [ebx]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1008c2e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1008c2e
mov eax, dword [0x1035014]
mov esi, 0x1035014
cmp eax, esi
je 0x1008bec
test byte [eax + 0x1c], 1
je 0x1008bec
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
push edi
push 0x87
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1008c2e
mov eax, dword [0x1035014]
cmp eax, esi
je 0x1008c2e
test byte [eax + 0x1c], 1
je 0x1008c2e
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
push edi
push 0x88
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
mov esi, ebx
mov eax, dword [esi]
mov ebx, dword [ebx + 0x10]
test eax, eax
je 0x1008c43
push eax
call fcn.01011bdc
and dword [esi], 0
pop ecx
push esi
call fcn.01011bdc
dec dword [ebp - 0x41c]
pop ecx
test ebx, ebx
jne 0x1008b8b
cmp dword [ebp - 0x41c], ebx
je 0x1008c83
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1008c83
test byte [eax + 0x1c], 1
je 0x1008c83
push edi
push 0x89
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 4