Function at 0x1001b780
Capabilities:
Delete file

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
push esi
mov edx, dword [esi + 0x4e80]
cmp edx, edi
mov edx, dword [esp + 0x1c]
sete al
push eax
push ecx
push edx
call fcn.1001b6b0
mov eax, dword [esi + 0xaf98]
add esp, 0x10
cmp eax, edi
je 0x1001b94e
cmp eax, dword [esi + 0x4e90]
je 0x1001b809
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1001b7d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
test byte [esi + 0x4ef5], 0x40
jne 0x1001b7ef
mov eax, dword [esi + 0xaf98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0xaf98]
push ecx
call fcn.10039f0f
add esp, 4
mov dword [esi + 0xaf98], edi
jmp 0x1001b94e
mov edx, dword [esi + 8]
lea ebp, [esi + 8]
cmp edx, 0xffffffff
je 0x1001b94e
mov eax, dword [esi + 0x4ea0]
mov ecx, dword [esi + 0x4ea4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x4ea8]
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
je 0x1001b863
push 2
push edi
push edi
push edx
call fcn.100348d0
mov dword [esi + 0x4ea0], eax
mov dword [esi + 0x4ea4], edx
mov eax, dword [esi + 0x4ea0]
mov ecx, edx
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
test byte [esi + 0x4ef5], 0x80
push ebx
jne 0x1001b93c
mov ebx, dword [esi + 0x4ea4]
mov edi, dword [esi + 0x4ea0]
mov edx, dword [ebp]
push 0
push ebx
push edi
push edx
call fcn.100348d0
add esp, 0x10
cmp eax, edi
jne 0x1001b93a
cmp edx, ebx
jne 0x1001b93a
mov dword [esi + 0x4ec0], edi
mov edi, dword [esi + 0x4eac]
mov dword [esi + 0x4ec4], ebx
test edi, edi
push esi
push ebp
je 0x1001b901
push edi
call fcn.10019c90
add esp, 0xc
test eax, eax
jne 0x1001b93a
mov eax, dword [edi + 0x64]
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
mov ebx, dword [esi + 0x4ec0]
add eax, edx
add eax, ecx
mov ecx, dword [edi + 0x20]
lea edx, [eax + ecx + 0x2e]
mov eax, dword [esp + 0x24]
add ebx, edx
mov dword [esi + 0x4ec0], ebx
mov ecx, dword [esi + 0x4ec4]
adc ecx, 0
inc eax
mov dword [esi + 0x4ec4], ecx
mov edi, dword [edi + 0x68]
mov dword [esp + 0x24], eax
jmp 0x1001b8af
mov eax, dword [esi + 0x4eb8]
mov ecx, dword [esi + 0x4eb4]
mov edx, dword [esi + 0x4ec0]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
sub edx, eax
push ecx
push eax
mov eax, dword [esi + 0x4ec4]
sbb eax, ecx
push eax
mov eax, dword [esp + 0x40]
push edx
cdq
push edx
push eax
call fcn.1001a6b0
add esp, 0x28
xor edi, edi
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], 0xffffffff
pop ebx
mov eax, dword [esi + 0x4ecc]
cmp eax, edi
je 0x1001b967
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x4ecc], edi
mov eax, dword [esi + 0x4e88]
cmp eax, edi
je 0x1001b980
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x4e88], edi
mov eax, dword [esi + 0x4e8c]
cmp eax, edi
je 0x1001b993
push eax
call fcn.10039f0f
add esp, 4
mov eax, dword [esi + 0x4e90]
mov dword [esi + 0x4e8c], edi
cmp eax, edi
je 0x1001b9ac
push eax
call fcn.10039f0f
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 0x4e90], edi
cmp eax, 3
je 0x1001b9c4
push esi
call fcn.1001b3f0
add esp, 4
pop edi
pop esi
pop ebp
add esp, 8
ret