Function at 0x10004ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100edbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1012d034]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1012d034]
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 0x10004c2b
mov edx, dword [esi]
sub esp, 0x18
push esp
call dword [edx + 0x14]
mov ecx, esi
call fcn.10004640
mov edi, eax
test edi, edi
je 0x10004e50
push ebx
push edi
call fcn.10005540
xor edx, edx
mov ecx, edi
call fcn.100b3690
add esi, 0x1c
cmp dword [esi + 0x14], 8
jb 0x10004c1f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10004e50
mov edi, dword [esi + 0x74]
mov ebx, dword [esi + 0x78]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x10004e50
lea eax, [esi + 0x64]
mov dword [esp + 0x14], eax
jmp 0x10004c50
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.10001a70
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
lea eax, [esi + 0x34]
cmp eax, ecx
je 0x10004c93
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.10001a70
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 0x10004d0c
mov eax, dword [ecx]
test eax, eax
je 0x10004ce8
push dword [esp + 0x18]
lea edx, [esp + 0x17]
push edx
push dword [ecx + 4]
push eax
call fcn.100075e0
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 0x10004d55
push dword [esp + 0x18]
lea ecx, [esp + 0x17]
push ecx
push dword [esp + 0x34]
push eax
call fcn.100075e0
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 0x10004e21
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.10001a70
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.10001a70
mov ecx, ebx
call fcn.10004640
mov dword [esp + 0x24], eax
test eax, eax
je 0x10004df4
push edi
push eax
call fcn.10005540
mov ecx, dword [esp + 0x24]
xor edx, edx
call fcn.100b3690
cmp dword [ebx + 0x30], 8
lea eax, [ebx + 0x1c]
jb 0x10004ded
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x78], 0
cmp dword [esp + 0x64], 8
jb 0x10004e0d
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 0x10004d70
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x10004e3d
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 0x10004c50
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.100ebd7b
mov esp, ebp
pop ebp
ret 4