Function at 0x1001b100
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x1004f6ba
push eax
mov dword fs:[0], esp
sub esp, 0x40
cmp dword [ecx + 0x14], 0x10
push ebx
push esi
push edi
jb 0x1001b12c
mov ecx, dword [ecx]
sub esp, 8
call fcn.10041190
mov edi, eax
add esp, 8
test edi, edi
je 0x1001b316
mov eax, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001b32a
xor eax, eax
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
add eax, esi
mov dword [esp + 0x30], 0xf
push 0
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.100018e0
push 2
sub esp, 8
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x24]
call fcn.10006c70
inc eax
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
push eax
call fcn.10003d40
mov esi, eax
lea eax, [esp + 0x18]
cmp eax, esi
je 0x1001b239
cmp dword [esp + 0x2c], 0x10
jb 0x1001b1db
push dword [esp + 0x18]
call ebx
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
cmp dword [esi + 0x14], 0x10
jae 0x1001b20e
mov eax, dword [esi + 0x10]
inc eax
je 0x1001b21a
push eax
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1001b21a
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x44], 0x10
jb 0x1001b249
push dword [esp + 0x30]
call ebx
add esp, 4
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x1001b25c
mov eax, dword [eax]
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
cmp dword [edi], 2
jne 0x1001b2d2
sub esp, 8
push eax
push ecx
mov ecx, dword [edi + 4]
call fcn.10041350
mov dword [0x1006ef90], eax
test eax, eax
jne 0x1001b2dc
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x1001b29d
push dword [esp + 0x18]
call ebx
add esp, 4
mov eax, dword [ebp + 8]
add esi, 0x18
inc dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jae 0x1001b32a
mov eax, dword [esp + 0x14]
jmp 0x1001b174
mov dword [0x1006ef90], 0x80000
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x1001b2e7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi], 1
mov ecx, edi
sete al
test al, al
je 0x1001b301
call fcn.10041010
jmp 0x1001b306
call fcn.10045330
cmp dword [esp + 0x2c], 0x10
jb 0x1001b316
push dword [esp + 0x18]
call ebx
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
cmp ecx, 1
sete al
test al, al
je 0x1001b376
cmp ecx, 1
je 0x1001b359
mov dword [0x1006ee0c], 0x80000
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.1003c850
mov dword [0x1006ee0c], eax
test esi, esi
je 0x1001b3b4
push ecx
mov ecx, esi
call fcn.1000d2f0
jmp 0x1001b3b4
cmp ecx, 2
je 0x1001b399
mov dword [0x1006ef90], 0x80000
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.10041f90
mov dword [0x1006ef90], eax
test esi, esi
je 0x1001b3b4
push ecx
mov ecx, esi
call fcn.1000d340
push edi
call ebx
mov ecx, dword [esp + 0x50]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret