Function at 0x1001ce70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10054020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov dword [ebp - 0x74], ecx
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], si
call fcn.100020a0
push 2
push 0x10048884
lea ebx, [ebp - 0x4c]
mov dword [ebp - 4], esi
call fcn.1001af70
cmp eax, 0xffffffff
je 0x1001cf2a
add eax, 1
cmp eax, dword [ebp - 0x38]
jae 0x1001cf2a
push 0xffffffffffffffff
mov edx, ebx
push edx
mov ecx, eax
lea esi, [ebp - 0x94]
call fcn.10002070
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.100020a0
mov ebx, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x7c], ebx
jb 0x1001cf2f
mov eax, dword [ebp - 0x90]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1001cf2f
mov ebx, 8
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x4c]
push ecx
push edx
lea edi, [ebp - 0x30]
call fcn.1001dd20
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x2c]
jae 0x1001cf51
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x2c]
jae 0x1001cf63
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x70], esi
jne 0x1001cfea
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x1c], 0
je 0x1001cfaf
sub esp, 0x1c
mov edi, eax
mov esi, esp
mov dword [ebp - 0x70], esp
push 0x202
mov ecx, edi
call fcn.1001d760
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp dword [ebp - 0x18], ebx
jb 0x1001cfc0
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
jb 0x1001d13b
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1001d13b
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x6c]
push eax
push ecx
push esi
mov byte [ebp - 4], 3
call fcn.1001d160
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1001d0ed
lea edx, [ebp - 0x94]
push edx
call fcn.10027650
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.10027170
lea esi, [ebp - 0x68]
lea edi, [ebp - 0x94]
call fcn.10027790
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x14]
cmp dword [ebp - 0x54], ecx
mov esi, 8
jne 0x1001d06e
cmp dword [eax + 0x18], esi
jb 0x1001d057
mov eax, dword [eax + 4]
jmp 0x1001d05a
add eax, 4
cmp dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x64]
jae 0x1001d065
lea ecx, [ebp - 0x64]
call fcn.10022700
test al, al
jne 0x1001d070
xor bl, bl
cmp dword [ebp - 0x50], esi
jb 0x1001d081
mov ecx, dword [ebp - 0x64]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [ebp - 0x94]
xor edi, edi
push edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], di
mov byte [ebp - 4], 3
call fcn.1001c4d0
test bl, bl
je 0x1001d0f4
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x30]
push eax
add esi, 0x38
call fcn.1001d7a0
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x1001d0ca
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
jb 0x1001d0e9
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
jmp 0x1001d13d
xor edi, edi
mov esi, 8
cmp dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x2c]
jae 0x1001d0ff
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001d0b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003ec9d
mov esp, ebp
pop ebp
ret 0xc