Function at 0x102be3e
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x110602f
call fcn.0106f64b
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 0xd], 0
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102be91
test byte [eax + 0x1c], 1
je 0x102be91
cmp byte [eax + 0x19], 4
jb 0x102be91
mov ebx, 0x10023f8
push ebx
push 0x13d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x102be96
mov ebx, 0x10023f8
cmp dword [esi + 0x140], edi
jne 0x102beb2
push 0x1002bc8
push 0x1898
push 0x1002460
call fcn.0107b4be
lea ecx, [esi + 0x18]
push edi
mov dword [ebp - 0x28], ecx
call fcn.010d19c5
mov edi, eax
test edi, edi
jl 0x102c1bb
lea eax, [ebp - 0xd]
push eax
call fcn.010822cd
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x102bf14
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c1bb
test byte [eax + 0x1c], 1
je 0x102c1bb
cmp byte [eax + 0x19], 2
jb 0x102c1bb
push edi
push ebx
push 0x13e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x102c1bb
cmp dword [esi + 0x13c], eax
jne 0x102bf56
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c1bb
test byte [eax + 0x1c], 1
je 0x102c1bb
cmp byte [eax + 0x19], 4
jb 0x102c1bb
push ebx
push 0x13f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x102c1bb
test byte [esi + 0xec], 4
je 0x102c035
lea ecx, [ebp - 0x24]
push ecx
push eax
push eax
push dword [esi + 0x140]
call fcn.010df353
mov edi, eax
test edi, edi
jl 0x102c1bb
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call fcn.010d4f33
mov edi, eax
test edi, edi
jge 0x102bfd4
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c1bb
test byte [eax + 0x1c], 1
je 0x102c1bb
cmp byte [eax + 0x19], 2
jb 0x102c1bb
push edi
push dword [esi + 0x140]
push dword [ebp - 0x24]
push ebx
push 0x140
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
jmp 0x102c1bb
cmp dword [ebp - 0x18], 0
je 0x102c035
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102c035
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c01c
test byte [eax + 0x1c], 1
je 0x102c01c
cmp byte [eax + 0x19], 2
jb 0x102c01c
push edi
push dword [ebp - 0x18]
push ebx
push 0x141
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
test edi, edi
jle 0x102c1bb
and edi, 0xffff
or edi, 0x80070000
jmp 0x102c1bb
lea eax, [ebp - 0x1c]
push eax
push 0
lea ebx, [esi + 0xd0]
push ebx
push dword [esi + 0x140]
call fcn.010df353
mov edi, eax
test edi, edi
jl 0x102c1b6
test byte [esi + 0xec], 1
lea eax, [ebp - 0x20]
je 0x102c070
push 0
push eax
push dword [ebp - 0x1c]
call fcn.0107c871
jmp 0x102c07f
push eax
push 1
push ebx
push dword [esi + 0x140]
call fcn.010df353
mov edi, eax
test edi, edi
jl 0x102c1b6
cmp byte [ebp - 0xd], 0
jne 0x102c0f9
mov edi, dword [ebp + 8]
test edi, edi
jne 0x102c0aa
push 0x10031ac
push 0x18f5
push 0x1002460
call fcn.0107b4be
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push edi
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jge 0x102c0f9
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c1b6
test byte [eax + 0x1c], 1
je 0x102c1b6
cmp byte [eax + 0x19], 2
jb 0x102c1b6
push edi
push 0x10023f8
push 0x142
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x102c1b6
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x102c106
mov eax, dword [esi + 0x13c]
push eax
push dword [esi + 0xe8]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.010d2ff8
mov edi, eax
test edi, edi
jl 0x102c1b6
test byte [esi + 0xec], 0x80
je 0x102c1b6
cmp byte [esi + 0xbc], 0
je 0x102c1b6
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x102c155
mov ecx, eax
call fcn.0101fd13
mov ebx, eax
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0101a13c
mov edi, eax
test edi, edi
jl 0x102c1b6
mov edi, dword [ebp - 0x14]
mov eax, edi
test edi, edi
jne 0x102c178
mov eax, dword [esi + 0x13c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c17b
sub eax, edx
sar eax, 1
mov ecx, edi
test edi, edi
jne 0x102c195
mov ecx, dword [esi + 0x13c]
push 0
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, ebx
call fcn.01020da4
mov edi, eax
test edi, edi
jl 0x102c1b6
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029c6b
mov ebx, 0x10023f8
mov ecx, dword [ebp - 0x28]
call fcn.010d1b11
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x102c1d8
push dword [ebp - 0x14]
call esi
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x20], 0
je 0x102c1e3
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x18], 0
je 0x102c1ee
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x24], 0
je 0x102c1f9
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0
je 0x102c204
push dword [ebp - 0x1c]
call esi
test edi, edi
jge 0x102c232
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c25b
test byte [eax + 0x1c], 1
je 0x102c237
cmp byte [eax + 0x19], 2
jb 0x102c237
push edi
push ebx
push 0x143
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102c25b
test byte [eax + 0x1c], 1
je 0x102c25b
cmp byte [eax + 0x19], 4
jb 0x102c25b
push ebx
push 0x144
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, edi
call fcn.0106f737
ret 4