Function at 0x102bf17
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x1105dcf
call fcn.0106f7eb
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 [0x111024c]
cmp eax, 0x111024c
je 0x102bf6a
test byte [eax + 0x1c], 1
je 0x102bf6a
cmp byte [eax + 0x19], 4
jb 0x102bf6a
mov ebx, 0x10023f8
push ebx
push 0x13c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x102bf6f
mov ebx, 0x10023f8
cmp dword [esi + 0x140], edi
jne 0x102bf8b
push 0x1002bc8
push 0x188e
push 0x1002460
call fcn.0107b644
lea ecx, [esi + 0x18]
push edi
mov dword [ebp - 0x28], ecx
call fcn.010d19a2
mov edi, eax
test edi, edi
jl 0x102c294
lea eax, [ebp - 0xd]
push eax
call fcn.01082380
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x102bfed
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c294
test byte [eax + 0x1c], 1
je 0x102c294
cmp byte [eax + 0x19], 2
jb 0x102c294
push edi
push ebx
push 0x13d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x102c294
cmp dword [esi + 0x13c], eax
jne 0x102c02f
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c294
test byte [eax + 0x1c], 1
je 0x102c294
cmp byte [eax + 0x19], 4
jb 0x102c294
push ebx
push 0x13e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x102c294
test byte [esi + 0xec], 4
je 0x102c10e
lea ecx, [ebp - 0x24]
push ecx
push eax
push eax
push dword [esi + 0x140]
call fcn.010df265
mov edi, eax
test edi, edi
jl 0x102c294
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call fcn.010d4e81
mov edi, eax
test edi, edi
jge 0x102c0ad
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c294
test byte [eax + 0x1c], 1
je 0x102c294
cmp byte [eax + 0x19], 2
jb 0x102c294
push edi
push dword [esi + 0x140]
push dword [ebp - 0x24]
push ebx
push 0x13f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x102c294
cmp dword [ebp - 0x18], 0
je 0x102c10e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102c10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c0f5
test byte [eax + 0x1c], 1
je 0x102c0f5
cmp byte [eax + 0x19], 2
jb 0x102c0f5
push edi
push dword [ebp - 0x18]
push ebx
push 0x140
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
test edi, edi
jle 0x102c294
and edi, 0xffff
or edi, 0x80070000
jmp 0x102c294
lea eax, [ebp - 0x1c]
push eax
push 0
lea ebx, [esi + 0xd0]
push ebx
push dword [esi + 0x140]
call fcn.010df265
mov edi, eax
test edi, edi
jl 0x102c28f
test byte [esi + 0xec], 1
lea eax, [ebp - 0x20]
je 0x102c149
push 0
push eax
push dword [ebp - 0x1c]
call fcn.0107c9fc
jmp 0x102c158
push eax
push 1
push ebx
push dword [esi + 0x140]
call fcn.010df265
mov edi, eax
test edi, edi
jl 0x102c28f
cmp byte [ebp - 0xd], 0
jne 0x102c1d2
mov edi, dword [ebp + 8]
test edi, edi
jne 0x102c183
push 0x10031b4
push 0x18eb
push 0x1002460
call fcn.0107b644
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push edi
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jge 0x102c1d2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c28f
test byte [eax + 0x1c], 1
je 0x102c28f
cmp byte [eax + 0x19], 2
jb 0x102c28f
push edi
push 0x10023f8
push 0x141
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x102c28f
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x102c1df
mov eax, dword [esi + 0x13c]
push eax
push dword [esi + 0xe8]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.010d2f5e
mov edi, eax
test edi, edi
jl 0x102c28f
test byte [esi + 0xec], 0x80
je 0x102c28f
cmp byte [esi + 0xbc], 0
je 0x102c28f
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 0x102c22e
mov ecx, eax
call fcn.0101fc50
mov ebx, eax
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0101a04a
mov edi, eax
test edi, edi
jl 0x102c28f
mov edi, dword [ebp - 0x14]
mov eax, edi
test edi, edi
jne 0x102c251
mov eax, dword [esi + 0x13c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c254
sub eax, edx
sar eax, 1
mov ecx, edi
test edi, edi
jne 0x102c26e
mov ecx, dword [esi + 0x13c]
push 0
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, ebx
call fcn.01020d5f
mov edi, eax
test edi, edi
jl 0x102c28f
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029ca7
mov ebx, 0x10023f8
mov ecx, dword [ebp - 0x28]
call fcn.010d1aee
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x102c2b1
push dword [ebp - 0x14]
call esi
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x20], 0
je 0x102c2bc
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x18], 0
je 0x102c2c7
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x24], 0
je 0x102c2d2
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], 0
je 0x102c2dd
push dword [ebp - 0x1c]
call esi
test edi, edi
jge 0x102c30b
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c334
test byte [eax + 0x1c], 1
je 0x102c310
cmp byte [eax + 0x19], 2
jb 0x102c310
push edi
push ebx
push 0x142
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102c334
test byte [eax + 0x1c], 1
je 0x102c334
cmp byte [eax + 0x19], 4
jb 0x102c334
push ebx
push 0x143
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, edi
call fcn.0106f8d7
ret 4