Function at 0x10069ef0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101645cd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12a4
call fcn.10148b90
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x12a0], eax
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x12b8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jle 0x10069fbb
mov eax, dword [esi]
mov edx, dword [eax + 0xec]
call edx
test eax, eax
js 0x10069fbb
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, dword [esp + 0x18]
dec edi
cmp edi, ebx
jl 0x10069fbb
jmp 0x10069f70
mov dword [esp + 0x12c0], ebx
mov eax, dword [esi + 0x38]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x154]
push ecx
push edx
call fcn.10085730
mov dword [esp + 0x12c0], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10069fb8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
dec edi
jns 0x10069f70
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
xor edi, edi
cmp dword [esi + 0xb8], ebx
jle 0x10069fe9
mov edi, edi
mov eax, dword [esi + 0xb4]
mov ebx, dword [eax + edi*4]
call fcn.100a3bb0
inc edi
cmp edi, dword [esi + 0xb8]
jl 0x10069fd0
xor ebx, ebx
mov esi, dword [esi + 0xc]
mov eax, 1
add dword [esi - 0xc], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x12c0], eax
mov edi, dword [esi - 4]
cmp edi, 2
jne 0x1006a030
cmp word [esi + 2], 0x3a
jne 0x1006a030
push 0
push eax
lea ebx, [edi + 1]
push ebx
lea esi, [esp + 0x20]
call fcn.100163a0
mov esi, dword [esp + 0x14]
mov ecx, 0x5c
mov word [esi + edi*2], cx
mov dword [esi - 4], ebx
xor ebx, ebx
push 0x104
lea edx, [esp + 0x698]
push esi
push edx
call dword [sym.imp.MSVCR100.dll__wfullpath]
lea eax, [esp + 0x6a0]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006a051
sub eax, edx
push ebx
sar eax, 1
mov edi, eax
push ebx
push edi
lea esi, [esp + 0x20]
call fcn.100163a0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x694]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x1006a080
mov dword [esi - 4], edi
push 0x4c
mov dword [esp + 0x12c4], 2
call fcn.101484dd
lea edi, [eax + 0xc]
lea eax, [edi - 0xc]
mov dword [eax], 1
mov dword [edi - 8], 0x4c
mov dword [edi], 0x2a
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [edi - 4], 1
push ebx
lea ecx, [esp + 0xaa0]
push ecx
lea edx, [esp + 0x8a4]
push edx
lea eax, [esp + 0x698]
push eax
push esi
mov byte [esp + 0x12d4], 3
call dword [sym.imp.MSVCR100.dll__wsplitpath]
add esp, 0x14
push edi
lea ecx, [esp + 0xaa0]
push ecx
lea edx, [esp + 0x8a4]
push edx
lea eax, [esp + 0x698]
push eax
lea ecx, [esp + 0xcac]
push ecx
call dword [sym.imp.MSVCR100.dll__wmakepath]
lea eax, [esp + 0xcb0]
add esp, 0x14
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006a130
sub eax, edx
push 0
sar eax, 1
mov ebx, eax
push 0
push ebx
lea esi, [esp + 0x20]
call fcn.100163a0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc9c]
mov edx, esi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1006a160
add edi, 0xfffffff4
mov dword [esi - 4], ebx
mov byte [esp + 0x12c0], 2
je 0x1006a191
mov eax, dword [esp + 0x18]
dec dword [eax]
jne 0x1006a191
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea edx, [esp + 0x14]
push edx
lea esi, [esp + 0x690]
call fcn.100176f0
mov edi, eax
push 1
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x12c8], 4
call fcn.100175b0
mov edx, dword [edi]
mov ecx, dword [eax]
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0x278], 1
call fcn.10023da0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006a1f9
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1006a1f9
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a1f9
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x12c0], 6
mov eax, dword [esp + 0x68c]
test eax, eax
je 0x1006a224
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a224
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a224
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
je 0x1006a398
cmp byte [esp + 0x278], 0
je 0x1006a23f
mov al, 1
jmp 0x1006a254
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [esp + 0x24]
test eax, eax
setne al
mov byte [esp + 0x278], 0
test al, al
je 0x1006a380
lea ecx, [esp + 0x482]
push ecx
lea edx, [esp + 0x27e]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x27e]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x27a]
mov dword [esp + 0x18], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006a2a0
sub eax, edx
push 0
sar eax, 1
mov ebx, eax
push 0
push ebx
lea esi, [esp + 0x24]
call fcn.100163a0
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x27a]
mov edx, edi
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1006a2d0
mov dword [edi - 4], ebx
mov eax, 4
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c0], 7
call fcn.10016dc0
mov eax, dword [eax]
test eax, eax
je 0x1006a313
push 0x10414ac4
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
jmp 0x1006a318
mov eax, SysReAllocString
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
test eax, eax
je 0x1006a33d
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a33d
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a33d
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
test bl, bl
je 0x1006a35c
lea eax, [edi - 0xc]
test eax, eax
mov byte [esp + 0x12c0], 6
je 0x1006a224
lea eax, [edi - 0xc]
jmp 0x1006a216
test byte [esp + 0x28], 0x10
push edi
jne 0x1006a371
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [edi - 0xc]
test ecx, ecx
jmp 0x1006a346
call fcn.10023900
lea ecx, [edi - 0xc]
add esp, 4
test ecx, ecx
jmp 0x1006a346
cmp ecx, 0xffffffff
je 0x1006a398
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1006a398
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1006a3b8
lea edx, [eax - 0xc]
test edx, edx
je 0x1006a3b8
add eax, 0xfffffff4
dec dword [eax]
jne 0x1006a3b8
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x12b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12a0]
xor ecx, esp
call fcn.10148524
mov esp, ebp
pop ebp
ret 4