Function at 0x140027190
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2d0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x310], rbx
mov rax, qword [0x14008b5a0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r12, rcx
mov qword [rsp + 0x20], 0
lea rcx, str.Deleteing_oemxxx.inf_corresponding_to__ls_n
call fcn.1400154e0
lea rcx, [rsp + 0x20]
call fcn.140026970
mov edi, eax
test eax, eax
je 0x1400271ff
mov edx, eax
lea rcx, str.ERROR:_Failed_to_get_the_inf_dir__hr__HRESULT__n
call fcn.1400154e0
mov eax, edi
jmp 0x14002741b
mov rbp, qword [rsp + 0x20]
mov rdx, rbp
lea rcx, str._soem.inf
call fcn.140039300
mov rbx, rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140027250
lea rcx, str.No_oem_files__we_are_done__n
call fcn.1400154e0
mov rcx, rbp
call fcn.140038240
mov rcx, rbx
call fcn.140038240
xor eax, eax
jmp 0x14002741b
or r13, 0xffffffffffffffff
mov rcx, rbx
call fcn.140038240
lea r8, [rsp + 0x9c]
mov rdx, rbp
lea rcx, [0x1400625b8]
call fcn.140039300
mov rbx, rax
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140026e20
nop
mov rcx, qword [r12 + 0x20]
call fcn.140036f20
mov rdi, rax
mov rcx, qword [rsp + 0x50]
call fcn.140036f20
lea r8, [rdi - 2]
lea r9, [rax - 2]
cmp rdi, r8
jne 0x1400272ad
xor cx, cx
jmp 0x1400272b4
movzx ecx, word [rdi]
add rdi, 2
cmp rax, r9
jne 0x1400272be
xor dx, dx
jmp 0x1400272c5
movzx edx, word [rax]
add rax, 2
cmp cx, dx
jne 0x1400272d1
test cx, cx
je 0x1400272e5
jmp 0x1400272a3
mov eax, 1
cmp cx, dx
cmovb eax, r13d
test eax, eax
jne 0x1400273e0
mov rcx, qword [r12 + 0x10]
call fcn.140036f20
mov rdi, rax
mov rcx, qword [rsp + 0x40]
call fcn.140036f20
lea r8, [rdi - 2]
lea r9, [rax - 2]
cmp rdi, r8
jne 0x14002730e
xor cx, cx
jmp 0x140027315
movzx ecx, word [rdi]
add rdi, 2
cmp rax, r9
jne 0x14002731f
xor dx, dx
jmp 0x140027326
movzx edx, word [rax]
add rax, 2
cmp cx, dx
jne 0x140027332
test cx, cx
je 0x140027346
jmp 0x140027304
mov eax, 1
cmp cx, dx
cmovb eax, r13d
test eax, eax
jne 0x1400273e0
lea rcx, str.Oem_file_matches__uninstalling_it..._n
call fcn.1400154e0
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x1400273ae
lea rdx, str.SetupUninstallOEMInfW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400273a5
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x9c]
call rax
test eax, eax
jne 0x1400273a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR:_Failed_to_uninstall_oem_file__err_u_n
call fcn.1400154e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x30]
call fcn.140026640
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
mov word [rbx + rcx*2 - 8], 0x70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x30]
call fcn.1400269f0
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140027254
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbp
call fcn.140038240
mov rcx, rbx
call fcn.140038240
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14004c890
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret