Function at 0x10274ce
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
or dword [ebp - 0x24], 0xffffffff
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027524
test byte [eax + 0x1c], 1
je 0x1027524
cmp byte [eax + 0x19], 4
jb 0x1027524
push 0x10023f8
push 0x208
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push dword [ebx + 0x140]
call fcn.010df5bc
mov esi, eax
cmp esi, edi
jl 0x1027a9f
lea eax, [ebp - 0x30]
push eax
push 0x7fffffff
push dword [ebx + 0x140]
mov dword [ebp - 0x30], edi
call fcn.01025cc8
mov esi, eax
cmp esi, edi
jl 0x1027a9f
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call fcn.010d4c08
mov esi, eax
cmp esi, edi
jge 0x10275ae
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027aa4
test byte [eax + 0x1c], 1
je 0x1027aa4
cmp byte [eax + 0x19], 2
jb 0x1027aa4
push esi
push dword [ebp - 0x20]
push 0x10023f8
push 0x209
jmp 0x1027a94
cmp dword [ebp - 0x18], edi
je 0x1027840
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x10275ca
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x18]
push edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
lea eax, [ecx + eax*2 + 2]
push eax
call fcn.0107c871
mov esi, eax
cmp esi, edi
jl 0x1027a9f
push 3
push 0x1002ae4
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10276a6
xor esi, esi
cmp dword [ebx + 0xfc], edi
jbe 0x1027631
xor edi, edi
mov eax, dword [ebx + 0x7c]
push dword [edi + eax + 0x54]
call fcn.0107db82
test al, al
jne 0x102762f
inc esi
add edi, 0x138
cmp esi, dword [ebx + 0xfc]
jb 0x1027610
xor edi, edi
cmp esi, dword [ebx + 0xfc]
jne 0x102780c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102780c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102780c
test byte [eax + 0x1c], 1
je 0x102780c
cmp byte [eax + 0x19], 2
jb 0x102780c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1027686
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [0x111124c]
push 0x10023f8
push 0x20a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x102780c
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10276ae
sub eax, edx
sar eax, 1
cmp eax, 0x24
jb 0x10277dc
xor eax, eax
mov word [esi + 0x48], ax
mov esi, 0x100cbcc
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x10277b5
push 4
pop ecx
mov edi, 0x100cbcc
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1027711
push 0x1002ec0
push 0x30ad
push 0x1002460
call fcn.0107b4be
mov edx, dword [ebx + 0xfc]
and dword [ebp - 0x28], 0
test edx, edx
jbe 0x1027743
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x7c]
add eax, 0x44
push 4
pop ecx
lea edi, [ebp - 0x14]
mov esi, eax
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x1027743
inc dword [ebp - 0x28]
add eax, 0x138
cmp dword [ebp - 0x28], edx
jb 0x1027728
cmp dword [ebp - 0x28], edx
jne 0x102780c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102780c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102780c
test byte [eax + 0x1c], 1
je 0x102780c
cmp byte [eax + 0x19], 2
jb 0x102780c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1027795
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [ebp - 0x18]
mov eax, dword [0x111124c]
push 0x10023f8
push 0x20b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x102780c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102780c
test byte [eax + 0x1c], 1
je 0x102780c
cmp byte [eax + 0x19], 3
jb 0x102780c
push dword [ebp - 0x18]
push 0x10023f8
push 0x20c
jmp 0x1027801
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102780c
test byte [eax + 0x1c], 1
je 0x102780c
cmp byte [eax + 0x19], 3
jb 0x102780c
push dword [ebp - 0x18]
push 0x10023f8
push 0x20d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x20]
call fcn.010d4db1
mov esi, eax
cmp esi, edi
jl 0x1027a9f
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jne 0x10275b9
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x24], 0xffffffff
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x1027860
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
push dword [ebx + 0x140]
call fcn.010df472
mov esi, eax
cmp esi, edi
jl 0x1027a9f
cmp dword [ebp - 0x18], edi
je 0x1027895
push 0x1002ea8
push 0x30e4
push 0x1002460
call fcn.0107b4be
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call fcn.010d4c08
mov esi, eax
cmp esi, edi
jge 0x10278e3
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027aa4
test byte [eax + 0x1c], 1
je 0x1027aa4
cmp byte [eax + 0x19], 3
jb 0x1027aa4
push esi
push dword [ebp - 0x20]
push 0x10023f8
push 0x20e
jmp 0x1027a94
cmp dword [ebp - 0x18], edi
je 0x1027a9f
mov ebx, dword [ebp - 0x30]
lea ebx, [ebx + ebx + 2]
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x1027906
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c], edi
push edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
call fcn.0107c871
mov esi, eax
cmp esi, edi
jl 0x1027a9f
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1027928
sub eax, edx
sar eax, 1
cmp eax, 0x24
jb 0x1027a0f
xor eax, eax
mov word [esi + 0x48], ax
mov esi, 0x100cbcc
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x10279e8
mov edi, dword [ebp - 0x2c]
push 4
add edi, 0xd0
pop ecx
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x1027a3f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1027a3f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027a3f
test byte [eax + 0x1c], 1
je 0x1027a3f
cmp byte [eax + 0x19], 3
jb 0x1027a3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10279c8
and eax, 0xffff
or eax, 0x80070000
push eax
push dword [ebp - 0x18]
mov eax, dword [0x111124c]
push 0x10023f8
push 0x20f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x1027a3f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027a3f
test byte [eax + 0x1c], 1
je 0x1027a3f
cmp byte [eax + 0x19], 3
jb 0x1027a3f
push dword [ebp - 0x18]
push 0x10023f8
push 0x210
jmp 0x1027a34
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027a3f
test byte [eax + 0x1c], 1
je 0x1027a3f
cmp byte [eax + 0x19], 3
jb 0x1027a3f
push dword [ebp - 0x18]
push 0x10023f8
push 0x211
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x20]
call fcn.010d4db1
mov esi, eax
cmp esi, edi
jl 0x1027a6e
cmp dword [ebp - 0x18], edi
jne 0x10278f3
jmp 0x1027a9f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027aa4
test byte [eax + 0x1c], 1
je 0x1027aa4
cmp byte [eax + 0x19], 2
jb 0x1027aa4
push esi
push dword [ebp - 0x20]
push 0x10023f8
push 0x212
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x1027ab9
push dword [ebp - 0x20]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x18], edi
je 0x1027acc
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x1c], edi
je 0x1027adf
push dword [ebp - 0x1c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x24], 0xffffffff
je 0x1027af3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1027b1b
test byte [eax + 0x1c], 1
je 0x1027b1b
cmp byte [eax + 0x19], 4
jb 0x1027b1b
push 0x10023f8
push 0x213
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret