Function at 0x102ca08
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x1105e6f
call fcn.0106f7eb
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
cmp dword [esi + 0x140], ebx
jne 0x102ca46
push 0x1002bc8
push 0x1aec
push 0x1002460
call fcn.0107b644
test byte [esi + 0xec], 4
je 0x102cb31
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push dword [esi + 0x140]
call fcn.010f9e79
mov edi, eax
cmp edi, ebx
jl 0x102cc31
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call fcn.010d4e81
mov edi, eax
cmp edi, ebx
jge 0x102cac8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102cc36
test byte [eax + 0x1c], 1
je 0x102cc36
cmp byte [eax + 0x19], 2
jb 0x102cc36
push edi
push dword [esi + 0x140]
push dword [ebp - 0x20]
push 0x10023f8
push 0x14b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x102cc31
cmp dword [ebp - 0x10], ebx
je 0x102cb31
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102cb31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102cb18
test byte [eax + 0x1c], 1
je 0x102cb18
cmp byte [eax + 0x19], 2
jb 0x102cb18
push edi
push dword [ebp - 0x10]
push 0x10023f8
push 0x14c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp edi, ebx
jle 0x102cc36
and edi, 0xffff
or edi, 0x80070000
jmp 0x102cc36
lea eax, [ebp - 0x14]
push eax
push 0
lea ebx, [esi + 0xd0]
push ebx
push dword [esi + 0x140]
call fcn.010f9e79
mov edi, eax
test edi, edi
jl 0x102cc2f
test byte [esi + 0xec], 1
lea eax, [ebp - 0x1c]
je 0x102cb6c
push 0
push eax
push dword [ebp - 0x14]
call fcn.0107c9fc
jmp 0x102cb7b
push eax
push 1
push ebx
push dword [esi + 0x140]
call fcn.010f9e79
mov edi, eax
test edi, edi
jl 0x102cc2f
lea eax, [ebp - 0x18]
push eax
call fcn.010fa702
mov edi, eax
test edi, edi
jl 0x102cc2f
push dword [ebp - 0x18]
push dword [esi + 0xe8]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.010d2f5e
mov edi, eax
test edi, edi
jl 0x102cc2f
test byte [esi + 0xec], 0x80
je 0x102cc2f
cmp byte [esi + 0xbc], 0
je 0x102cc2f
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x102cbe1
mov ecx, eax
call fcn.0101fc50
mov ebx, eax
push dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov dword [ebp - 0x24], ebx
call fcn.0101a04a
mov edi, eax
test edi, edi
jl 0x102cc2f
mov eax, dword [ebp - 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102cbfe
sub eax, edx
sar eax, 1
push 0
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.01020d5f
mov edi, eax
test edi, edi
jl 0x102cc2f
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029ca7
xor ebx, ebx
mov eax, dword [0x111024c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], ebx
je 0x102cc4b
push dword [ebp - 0x1c]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x10], ebx
je 0x102cc5a
push dword [ebp - 0x10]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x14], ebx
je 0x102cc69
push dword [ebp - 0x14]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x20], ebx
je 0x102cc78
push dword [ebp - 0x20]
call esi
mov eax, dword [0x111024c]
cmp edi, ebx
jge 0x102ccb7
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x102cc8e
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102ccb7
test byte [eax + 0x1c], 1
je 0x102ccb7
cmp byte [eax + 0x19], 2
jb 0x102ccb7
push edi
push 0x10023f8
push 0x14d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
cmp dword [ebp - 0x18], ebx
je 0x102ccc1
push dword [ebp - 0x18]
call esi
mov eax, edi
call fcn.0106f8d7
ret