Function at 0x1006fb5
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xdcd0
call fcn.01009450
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
lea ecx, [ebp - 0x1980]
push dword [esi + 0xc]
call fcn.01007998
lea ecx, [ebp - 0x20]
call fcn.01004176
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fa
push dword [esi + 8]
call edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc40]
push 0x1002740
push eax
call ebx
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
je 0x1007023
lea eax, [ebp - 0xc40]
push eax
push 0
push 0xc
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3fb
push dword [esi + 8]
call edi
mov edi, eax
lea eax, [ebp - 0xc40]
push 0x1001261
push eax
call ebx
cmp edi, 0xffffffff
pop ecx
pop ecx
je 0x1007056
lea eax, [ebp - 0xc40]
push eax
push 0
push 0xc
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.01006af8
test eax, eax
jne 0x1007068
xor esi, esi
jmp 0x1007661
mov ecx, esi
call fcn.01006d58
test eax, eax
je 0x1007061
mov ecx, esi
call fcn.01004aa7
mov ecx, esi
call fcn.01004b08
mov ecx, esi
call fcn.010056ad
mov ecx, esi
call fcn.010057e2
mov ecx, esi
call fcn.01005952
mov ecx, esi
call fcn.010059dc
mov ecx, esi
call fcn.01005a14
mov eax, dword [esi + 0x114]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x1007187
cmp eax, 1
je 0x1007158
cmp eax, 2
je 0x1007124
jle 0x1007219
cmp eax, 4
jg 0x1007219
push 0x100272c
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
push dword [esi + 0xc]
lea ecx, [ebp - 4]
call fcn.0100783e
lea ecx, [ebp - 4]
call fcn.01007947
push dword [esi + 8]
lea ecx, [ebp - 0x1058]
push dword [esi + 0xc]
call fcn.010086ed
lea ecx, [ebp - 0x1058]
call fcn.01008c01
test eax, eax
je 0x100717a
lea ecx, [ebp - 0x1058]
call fcn.01008ec9
jmp 0x100717a
push dword [esi + 8]
lea ecx, [ebp - 0x1058]
push dword [esi + 0xc]
call fcn.010086ed
lea ecx, [ebp - 0x1058]
call fcn.01008706
test eax, eax
je 0x1007219
lea ecx, [ebp - 0x1058]
call fcn.01008b1b
jmp 0x1007219
push 0x100272c
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
push dword [esi + 0xc]
lea ecx, [ebp - 4]
call fcn.0100783e
lea ecx, [ebp - 4]
call fcn.01007947
lea ecx, [ebp - 4]
call fcn.01007849
jmp 0x1007219
push 0x104
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x324]
lea ebx, [ebp - 0x324]
push eax
dec ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx], 0x5c
jne 0x10071c4
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and byte [eax + ebx], 0
push 0x100271c
lea eax, [ebp - 0x324]
push eax
call edi
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1007158
push 0x1002708
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
push dword [esi + 0xc]
lea ecx, [ebp - 4]
call fcn.0100783e
lea ecx, [ebp - 4]
call fcn.010078f6
lea ecx, [ebp - 4]
call fcn.01007849
mov ebx, 0x140
push ebx
call fcn.0100942f
push ebx
mov dword [ebp - 4], eax
call fcn.0100942f
cmp dword [ebp - 4], 0
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
je 0x1007061
test eax, eax
jne 0x100724e
push dword [ebp - 4]
call fcn.01009385
pop ecx
jmp 0x1007061
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 1
mov ebx, 0x1002640
push ebx
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
lea ecx, [ebp - 0x20]
push 1
je 0x100727b
push ebx
call fcn.01003e54
jmp 0x1007296
push 0x100263c
call fcn.01003f07
test eax, eax
je 0x1007290
call fcn.01006cb3
jmp 0x1007296
lea eax, [esi + 0x191a]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x1468]
push eax
call ebx
push 1
push 0x1002608
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
jne 0x10072c9
lea eax, [esi + 0x2d1c]
push eax
lea eax, [ebp - 0x1468]
push eax
call edi
and byte [ebp - 0x1460], 0
push 1
push 0x1002648
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
je 0x10072f4
push 1
push 0x1002648
lea ecx, [ebp - 0x20]
call fcn.01003e54
jmp 0x10072f7
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x830]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x1007329
push 0x1002644
lea eax, [ebp - 0x830]
push eax
call edi
lea eax, [ebp - 0x1468]
push eax
lea eax, [ebp - 0x830]
push eax
call edi
push 1
push 0x1002604
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
lea eax, [ebp - 0x830]
je 0x1007359
push 0x10025fc
jmp 0x100735e
push 0x10025f4
push eax
call edi
push 1
push 0x100263c
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
je 0x100738e
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x830]
sub ecx, 4
and byte [eax + ecx], 0
push dword [ebp - 4]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10074b2
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xc
jle 0x10074a0
mov eax, dword [esi + 0x114]
cmp eax, 2
je 0x10074a0
cmp eax, 3
je 0x10074a0
lea eax, [ebp - 0x830]
push 0x10024c8
push eax
call fcn.010095ce
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
push 0x10024c4
push dword [eax]
call fcn.010095ce
add esp, 0x10
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x100745b
test eax, eax
je 0x1007466
push dword [ebp - 8]
lea eax, [ebp - 0xdcd0]
push 0xc350
push eax
call fcn.010096c3
add esp, 0xc
jmp 0x1007444
lea eax, [ebp - 0xdcd0]
push eax
call fcn.01009679
push dword [ebp - 8]
lea eax, [ebp - 0xdcd0]
push 0xc350
push eax
call fcn.010096c3
add esp, 0x14
test eax, eax
push dword [ebp - 0xc]
jne 0x1007421
call fcn.0100954e
push dword [ebp - 8]
call fcn.0100954e
pop ecx
jmp 0x1007474
test eax, eax
je 0x1007493
push eax
call fcn.0100954e
pop ecx
cmp dword [ebp - 8], 0
je 0x1007475
push dword [ebp - 8]
call fcn.0100954e
pop ecx
cmp dword [ebp - 0xc], 0
je 0x1007484
push dword [ebp - 0xc]
call fcn.0100954e
pop ecx
cmp dword [ebp - 8], 0
je 0x1007493
push dword [ebp - 8]
call fcn.0100954e
pop ecx
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 4]
call fcn.01009385
push dword [ebp - 0x10]
call fcn.01009385
pop ecx
pop ecx
cmp dword [0x10134e4], 0
je 0x10074c6
lea ecx, [ebp - 0x1980]
call fcn.010086a8
push 0x10026f0
push dword [esi + 0xc]
call fcn.010076a1
cmp dword [esi + 0x2d2c], 0
pop ecx
pop ecx
je 0x10075f5
push 1
push 0x10026e4
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
jne 0x10075f5
cmp dword [esi + 0x114], 3
jne 0x10075f5
mov eax, dword [esi + 0xc]
push dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
call ebx
push 0x10026d4
lea eax, [ebp - 0x220]
push eax
call edi
push 0x10026c4
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.01005f92
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
push 0x10026c0
lea eax, [ebp - 0x220]
push eax
call edi
mov eax, dword [esi + 0xc]
push dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
call edi
push 0x10026b0
lea eax, [ebp - 0x220]
push eax
call edi
push 0
mov eax, 0x1001261
push eax
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
call fcn.01009661
add esp, 0x18
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x100269c
push dword [esi + 0xc]
call fcn.010076a1
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
call ebx
push 0x100268c
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call fcn.01005ee5
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1002674
push dword [esi + 0xc]
call fcn.010076a1
pop ecx
pop ecx
push 0x3fa
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 0xc40]
push 0x100264c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push 0x1002648
lea ecx, [ebp - 0x20]
call fcn.01003f07
test eax, eax
je 0x100764c
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 6
push dword [eax]
call edi
push 6
add esi, 0x291c
push esi
call edi
lea eax, [ebp - 0xc40]
push eax
push 0
push 0xc
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.01003cac
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret