Function at 0x102c26a
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x1106059
call fcn.0106f6be
xor ebx, ebx
mov esi, ecx
mov eax, dword [esi + 0x138]
xor edi, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
cmp eax, ebx
jne 0x102c2d6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c5aa
test byte [eax + 0x1c], 1
je 0x102c5aa
cmp byte [eax + 0x19], 4
jb 0x102c5aa
push 0x10023f8
push 0x145
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x102c540
mov dword [ebp - 0x3c], ebx
cmp dword [eax + 4], ebx
jbe 0x102c5aa
cmp dword [ebp - 0x28], ebx
je 0x102c2f3
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x3c]
push dword [esi + 0x138]
call fcn.010ed320
mov edi, eax
cmp edi, ebx
jl 0x102c540
cmp dword [esi + 0x140], ebx
jne 0x102c32f
push 0x1002bc8
push 0x1977
push 0x1002460
call fcn.0107b4be
test byte [esi + 0xec], 4
je 0x102c3a5
cmp dword [ebp - 0x34], ebx
je 0x102c349
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [esi + 0x140]
call fcn.010df472
mov edi, eax
cmp edi, ebx
jl 0x102c540
cmp dword [ebp - 0x2c], ebx
je 0x102c379
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call fcn.010d4f33
mov edi, eax
cmp edi, ebx
jl 0x102c540
cmp dword [ebp - 0x2c], ebx
je 0x102c3a5
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x102c4ea
cmp dword [ebp - 0x24], ebx
je 0x102c3b6
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea eax, [esi + 0xd0]
push eax
push dword [esi + 0x140]
call fcn.010df472
mov edi, eax
cmp edi, ebx
jl 0x102c540
cmp dword [ebp - 0x30], ebx
je 0x102c3ec
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x30], ebx
test byte [esi + 0xec], 1
lea eax, [ebp - 0x30]
je 0x102c404
push ebx
push eax
push dword [ebp - 0x24]
call fcn.0107c871
jmp 0x102c41d
push eax
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0xd0]
push eax
push dword [esi + 0x140]
call fcn.010df472
mov edi, eax
cmp edi, ebx
jl 0x102c540
push dword [ebp - 0x28]
push dword [esi + 0xe8]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call fcn.010d2ff8
mov edi, eax
cmp edi, ebx
jl 0x102c540
test byte [esi + 0xec], 0x80
je 0x102c4d3
cmp byte [esi + 0xbc], bl
je 0x102c4d3
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x102c478
call fcn.0101fd13
mov dword [ebp - 0x40], eax
jmp 0x102c47b
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], ecx
call fcn.0101a13c
mov edi, eax
cmp edi, ebx
jl 0x102c533
mov eax, dword [ebp - 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102c49d
mov ecx, dword [ebp - 0x40]
sub eax, edx
sar eax, 1
push ebx
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x28]
call fcn.01020da4
mov edi, eax
cmp edi, ebx
jl 0x102c533
push dword [ebp - 0x40]
lea ecx, [esi + 0x1e0]
call fcn.01029c6b
mov dword [ebp - 0x38], ebx
inc dword [ebp - 0x3c]
mov eax, dword [esi + 0x138]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 4]
jb 0x102c2e2
jmp 0x102c540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c523
test byte [eax + 0x1c], 1
je 0x102c523
cmp byte [eax + 0x19], 2
jb 0x102c523
push edi
push dword [ebp - 0x2c]
push 0x10023f8
push 0x146
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
cmp edi, ebx
jle 0x102c540
and edi, 0xffff
or edi, 0x80070000
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x102c540
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x28], ebx
je 0x102c550
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x30], ebx
je 0x102c55a
push dword [ebp - 0x30]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x102c564
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x34], ebx
je 0x102c56e
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x24], ebx
je 0x102c578
push dword [ebp - 0x24]
call esi
cmp edi, ebx
jge 0x102c5aa
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c5aa
test byte [eax + 0x1c], 1
je 0x102c5aa
cmp byte [eax + 0x19], 2
jb 0x102c5aa
push edi
push 0x10023f8
push 0x147
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, edi
call fcn.0106f750
ret