Function at 0x102ccce
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1105e99
call fcn.0106f7eb
mov esi, ecx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102cd09
test byte [eax + 0x1c], 1
je 0x102cd09
cmp byte [eax + 0x19], 4
jb 0x102cd09
push 0x10023f8
push 0x14e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x102cd31
push 0x1002bc8
push 0x1b8d
push edi
call fcn.0107b644
cmp dword [esi + 0x238], ebx
jne 0x102cd49
push 0x10031bc
push 0x1b8e
push edi
call fcn.0107b644
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [esi + 0x140]
call fcn.010de8d6
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x102cf38
test byte [esi + 0xec], 4
je 0x102ce3b
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.010d4e81
cmp eax, ebx
mov dword [ebp - 0x10], eax
jge 0x102cdce
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102cf31
test byte [eax + 0x1c], 1
je 0x102cf31
cmp byte [eax + 0x19], 2
jb 0x102cf31
push dword [ebp - 0x10]
push dword [esi + 0x140]
push dword [ebp - 0x14]
push 0x10023f8
push 0x14f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x102cf2c
cmp dword [ebp - 0x18], ebx
je 0x102ce3b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102ce3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x102cdf4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102cf31
test byte [eax + 0x1c], 1
je 0x102cf31
cmp byte [eax + 0x19], 2
jb 0x102cf31
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x10023f8
push 0x150
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x102cf2c
test byte [esi + 0xec], 1
lea eax, [ebp - 0x1c]
je 0x102ce53
push ebx
push eax
push dword [ebp - 0x14]
call fcn.0107c9fc
jmp 0x102ce61
push eax
push 1
push dword [esi + 0x140]
call fcn.010de8d6
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x102cf38
push dword [esi + 0x238]
push dword [esi + 0xe8]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.010d2f5e
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x102cf38
test byte [esi + 0xec], 0x80
je 0x102cf2c
cmp byte [esi + 0xbc], bl
je 0x102cf2c
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 0x102cec2
mov ecx, eax
call fcn.0101fc50
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.0101a04a
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x102cf1e
mov ecx, dword [esi + 0x238]
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x102cee7
sub eax, edi
sar eax, 1
push 0
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, ebx
call fcn.01020d5f
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x102cf1b
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029ca7
xor edi, edi
jmp 0x102cf1e
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x102cf2a
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
xor ebx, ebx
mov eax, dword [0x111024c]
cmp dword [ebp - 0x10], ebx
jge 0x102cf6d
jmp 0x102cf3d
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102cf6d
test byte [eax + 0x1c], 1
je 0x102cf6d
cmp byte [eax + 0x19], 2
jb 0x102cf6d
push dword [ebp - 0x10]
push 0x10023f8
push 0x151
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x14], ebx
je 0x102cf85
push dword [ebp - 0x14]
call esi
mov eax, dword [0x111024c]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
je 0x102cf97
push dword [ebp - 0x1c]
call esi
mov eax, dword [0x111024c]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x102cfa9
push dword [ebp - 0x18]
call esi
mov eax, dword [0x111024c]
mov dword [ebp - 0x18], ebx
cmp eax, 0x111024c
je 0x102cfd1
test byte [eax + 0x1c], 1
je 0x102cfd1
cmp byte [eax + 0x19], 4
jb 0x102cfd1
push 0x10023f8
push 0x152
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 0x10]
call fcn.0106f8d7
ret