Function at 0x10004ec0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010bf18
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10152034]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x10152034]
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 0x10004f4b
mov edx, dword [esi]
sub esp, 0x18
push esp
call dword [edx + 0x14]
mov ecx, esi
call fcn.10004960
mov edi, eax
test edi, edi
je 0x10005170
push ebx
push edi
call fcn.10005860
xor edx, edx
mov ecx, edi
call fcn.100b9d50
add esi, 0x1c
cmp dword [esi + 0x14], 8
jb 0x10004f3f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10005170
mov edi, dword [esi + 0x74]
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x10005170
lea eax, [esi + 0x64]
mov dword [esp + 0x14], eax
jmp 0x10004f70
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.10001d60
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
lea eax, [esi + 0x34]
cmp eax, ecx
je 0x10004fb3
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10001d60
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x1000502c
mov eax, dword [ecx]
test eax, eax
je 0x10005008
push dword [esp + 0x18]
lea edx, [esp + 0x17]
push edx
push dword [ecx + 4]
push eax
call fcn.10007990
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 0x10005075
push dword [esp + 0x18]
lea ecx, [esp + 0x17]
push ecx
push dword [esp + 0x34]
push eax
call fcn.10007990
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 0x10005141
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.10001d60
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.10001d60
mov ecx, ebx
call fcn.10004960
mov dword [esp + 0x24], eax
test eax, eax
je 0x10005114
push edi
push eax
call fcn.10005860
mov ecx, dword [esp + 0x24]
xor edx, edx
call fcn.100b9d50
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x1000510d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x78], 0
cmp dword [esp + 0x64], 8
jb 0x1000512d
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 0x10005090
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x1000515d
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 0x10004f70
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.1010a06b
mov esp, ebp
pop ebp
ret 4