Function at 0x102c690
Capabilities:
Delete file

Disassembly:
push 0x38
mov eax, 0x1105e45
call fcn.0106f7eb
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 2
cmp dword [esi + 0x140], ebx
jne 0x102c6ea
push 0x1002bc8
push 0x1a30
push 0x1002460
call fcn.0107b644
test byte [esi + 0xec], 4
je 0x102c7d0
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [esi + 0x140]
call fcn.010df5d5
mov edi, eax
cmp edi, ebx
jl 0x102c94b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call fcn.010d4e81
mov edi, eax
cmp edi, ebx
jge 0x102c76c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c94b
test byte [eax + 0x1c], 1
je 0x102c94b
cmp byte [eax + 0x19], 2
jb 0x102c94b
push edi
push dword [esi + 0x140]
push dword [ebp - 0x1c]
push 0x10023f8
push 0x147
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x102c94b
cmp dword [ebp - 0x10], ebx
je 0x102c7d0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102c7d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c7b7
test byte [eax + 0x1c], 1
je 0x102c7b7
cmp byte [eax + 0x19], 2
jb 0x102c7b7
push edi
push dword [ebp - 0x10]
push 0x10023f8
push 0x148
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
cmp edi, ebx
jle 0x102c94b
and edi, 0xffff
or edi, 0x80070000
jmp 0x102c94b
lea eax, [ebp - 0x14]
push eax
push 0
lea ebx, [esi + 0xd0]
push ebx
push dword [esi + 0x140]
call fcn.010df5d5
mov edi, eax
test edi, edi
jl 0x102c949
test byte [esi + 0xec], 1
lea eax, [ebp - 0x18]
je 0x102c80b
push 0
push eax
push dword [ebp - 0x14]
call fcn.0107c9fc
jmp 0x102c81a
push eax
push 1
push ebx
push dword [esi + 0x140]
call fcn.010df5d5
mov edi, eax
test edi, edi
jl 0x102c949
mov eax, dword [esi + 0x138]
test eax, eax
je 0x102c842
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.010edbab
mov edi, eax
test edi, edi
jl 0x102c949
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 0x2a8]
push eax
call fcn.010e4639
mov edi, eax
test edi, edi
jge 0x102c897
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c949
test byte [eax + 0x1c], 1
je 0x102c949
cmp byte [eax + 0x19], 2
jb 0x102c949
push edi
push 0x10023f8
push 0x149
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x102c949
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.010f8e0e
mov edi, eax
test edi, edi
jl 0x102c949
push dword [ebp - 0x20]
push dword [esi + 0xe8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.010d2f5e
mov edi, eax
test edi, edi
jl 0x102c949
test byte [esi + 0xec], 0x80
je 0x102c949
cmp byte [esi + 0xbc], 0
je 0x102c949
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x102c8fc
mov ecx, eax
call fcn.0101fc50
mov ebx, eax
jmp 0x102c8fe
xor ebx, ebx
push dword [ebp - 0x14]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0101a04a
mov edi, eax
test edi, edi
jl 0x102c949
mov eax, dword [ebp - 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c918
sub eax, edx
sar eax, 1
push 0
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x20]
mov ecx, ebx
call fcn.01020d5f
mov edi, eax
test edi, edi
jl 0x102c949
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029ca7
xor ebx, ebx
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], ebx
je 0x102c95b
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], ebx
je 0x102c965
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], ebx
je 0x102c96f
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x102c979
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x44]
push eax
call fcn.010f7fb3
cmp dword [ebp - 0x30], 0
jbe 0x102c9a4
push ebx
lea ecx, [ebp - 0x34]
call fcn.0103ba88
mov esi, eax
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [esi], 0
inc ebx
cmp ebx, dword [ebp - 0x30]
jb 0x102c988
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x34]
call fcn.010287c2
test edi, edi
jge 0x102c9e2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c9e2
test byte [eax + 0x1c], 1
je 0x102c9e2
cmp byte [eax + 0x19], 2
jb 0x102c9e2
push edi
push 0x10023f8
push 0x14a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
lea ecx, [ebp - 0x44]
call fcn.01040e00
lea ecx, [ebp - 0x34]
call fcn.01028389
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.0106f8d7
ret