Function at 0x10003320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100de588
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10115034]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x10115034]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
cmp byte [esi + 0x70], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], ebx
jne 0x100033ab
mov edx, dword [esi]
sub esp, 0x18
push esp
call dword [edx + 0x10]
mov ecx, esi
call fcn.10002e20
mov edi, eax
test edi, edi
je 0x100035d0
push ebx
push edi
call fcn.100040f0
xor edx, edx
mov ecx, edi
call fcn.100a7d10
add esi, 0x1c
cmp dword [esi + 0x14], 8
jb 0x1000339f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100035d0
mov edi, dword [esi + 0x74]
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x100035d0
lea eax, [esi + 0x64]
mov dword [esp + 0x14], eax
jmp 0x100033d0
xor eax, eax
mov dword [esp + 0x4c], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
call fcn.10001a60
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
lea eax, [esi + 0x34]
cmp eax, ecx
je 0x10003413
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10001a60
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x1000348c
mov eax, dword [ecx]
test eax, eax
je 0x10003468
push dword [esp + 0x18]
lea edx, [esp + 0x17]
push edx
push dword [ecx + 4]
push eax
call fcn.10006200
mov eax, dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100034d5
push dword [esp + 0x18]
lea ecx, [esp + 0x17]
push ecx
push dword [esp + 0x34]
push eax
call fcn.10006200
push dword [esp + 0x38]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
mov esi, dword [ecx]
cmp esi, dword [eax + 0x68]
je 0x100035a1
mov edi, dword [esp + 0x34]
mov ebx, eax
lea ebx, [ebx]
xor eax, eax
mov dword [esp + 0x64], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
call fcn.10001a60
sub esp, 0x18
mov byte [esp + 0x90], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0x70]
push eax
call fcn.10001a60
mov ecx, ebx
call fcn.10002e20
mov dword [esp + 0x24], eax
test eax, eax
je 0x10003574
push edi
push eax
call fcn.100040f0
mov ecx, dword [esp + 0x24]
xor edx, edx
call fcn.100a7d10
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x1000356d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x78], 0
cmp dword [esp + 0x64], 8
jb 0x1000358d
push dword [esp + 0x50]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
add esi, 0x18
cmp esi, dword [ebx + 0x68]
jne 0x100034f0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x100035bd
push dword [esp + 0x38]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [esp + 0x1c]
add edi, 0x18
mov dword [esp + 0x20], edi
cmp edi, ebx
jne 0x100033d0
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 4