Function at 0x102cbf5
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x11060f9
call fcn.0106f64b
mov esi, ecx
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102cc30
test byte [eax + 0x1c], 1
je 0x102cc30
cmp byte [eax + 0x19], 4
jb 0x102cc30
push 0x10023f8
push 0x14f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov edi, 0x1002460
cmp dword [esi + 0x140], ebx
jne 0x102cc58
push 0x1002bc8
push 0x1b97
push edi
call fcn.0107b4be
cmp dword [esi + 0x238], ebx
jne 0x102cc70
push 0x10031b4
push 0x1b98
push edi
call fcn.0107b4be
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi + 0x140]
call fcn.010de9c4
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x102ce5f
test byte [esi + 0xec], 4
je 0x102cd62
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.010d4f33
cmp eax, ebx
mov dword [ebp - 0x10], eax
jge 0x102ccf5
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102ce58
test byte [eax + 0x1c], 1
je 0x102ce58
cmp byte [eax + 0x19], 2
jb 0x102ce58
push dword [ebp - 0x10]
push dword [esi + 0x140]
push dword [ebp - 0x14]
push 0x10023f8
push 0x150
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
jmp 0x102ce53
cmp dword [ebp - 0x18], ebx
je 0x102cd62
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102cd62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102cd1b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102ce58
test byte [eax + 0x1c], 1
je 0x102ce58
cmp byte [eax + 0x19], 2
jb 0x102ce58
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x10023f8
push 0x151
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x102ce53
test byte [esi + 0xec], 1
lea eax, [ebp - 0x1c]
je 0x102cd7a
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0107c871
jmp 0x102cd88
push eax
push 1
push dword [esi + 0x140]
call fcn.010de9c4
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x102ce5f
push dword [esi + 0x238]
push dword [esi + 0xe8]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.010d2ff8
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x102ce5f
test byte [esi + 0xec], 0x80
je 0x102ce53
cmp byte [esi + 0xbc], bl
je 0x102ce53
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x102cde9
mov ecx, eax
call fcn.0101fd13
mov ebx, eax
push dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x20], edi
call fcn.0101a13c
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x102ce45
mov ecx, dword [esi + 0x238]
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x102ce0e
sub eax, edi
sar eax, 1
push 0
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, ebx
call fcn.01020da4
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x102ce42
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029c6b
xor edi, edi
jmp 0x102ce45
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x102ce51
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
xor ebx, ebx
mov eax, dword [0x111124c]
cmp dword [ebp - 0x10], ebx
jge 0x102ce94
jmp 0x102ce64
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102ce94
test byte [eax + 0x1c], 1
je 0x102ce94
cmp byte [eax + 0x19], 2
jb 0x102ce94
push dword [ebp - 0x10]
push 0x10023f8
push 0x152
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x14], ebx
je 0x102ceac
push dword [ebp - 0x14]
call esi
mov eax, dword [0x111124c]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
je 0x102cebe
push dword [ebp - 0x1c]
call esi
mov eax, dword [0x111124c]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x102ced0
push dword [ebp - 0x18]
call esi
mov eax, dword [0x111124c]
mov dword [ebp - 0x18], ebx
cmp eax, 0x111124c
je 0x102cef8
test byte [eax + 0x1c], 1
je 0x102cef8
cmp byte [eax + 0x19], 4
jb 0x102cef8
push 0x10023f8
push 0x153
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 0x10]
call fcn.0106f737
ret