Function at 0x140028970
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r14, rcx
mov byte [rbp - 0x20], 1
xor edi, edi
mov dword [rbp - 0x1c], edi
lea rax, [rbp - 0x18]
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov qword [rbp], rax
call fcn.140034b44
mov rsi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400293ec
cmp byte [r14 + 0x30], dil
jne 0x140029388
or r15, 0xffffffffffffffff
lea r12, [0x14003d470]
lea r13, [0x14003d550]
cmp dword [r14 + 0x5c], 3
je 0x140029383
mov ebx, 0x3e8
cmp qword [r14 + 0x38], r15
jne 0x140028ac0
xor esi, esi
cmp byte [r14 + 0x30], sil
jne 0x140028ac0
mov edx, 0x493e0
lea rcx, str..pipeSearchTextHarvester
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140028a94
mov edx, 0x493e0
lea rcx, str..pipeSearchTextHarvester
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140028a94
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [r14 + 0x30], sil
jne 0x140028a8b
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x40120000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str..pipeSearchTextHarvester
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 0x38], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [r14 + 0x38], r15
jne 0x140028ac0
mov edx, ebx
mov rcx, qword [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add edi, ebx
mov eax, 0xea60
cmp edi, 0x493e0
cmova ebx, eax
cmp qword [r14 + 0x38], r15
je 0x140028a16
xor edi, edi
mov byte [r14 + 0x31], dil
cmp byte [r14 + 0x30], dil
jne 0x140029383
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
mov rax, qword [r14 + 0x50]
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x20], 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 1
cmp byte [r14 + 0x30], dil
jne 0x140028b20
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8d, [rbx + 3]
mov rdx, qword [r14 + 0x48]
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x140028b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140028b49
or edx, 0xffffffff
mov rcx, qword [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140028b4e
mov byte [r14 + 0x31], 1
test byte [0x140050ac0], 1
je 0x140028b67
mov r8, r12
lea rdx, [0x14003d328]
call fcn.140006400
nop
cmp byte [r14 + 0x30], dil
jne 0x140029339
cmp byte [r14 + 0x31], dil
jne 0x140029339
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x40]
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140029325
mov r15, qword [r14 + 0x48]
mov qword [rbp - 0x70], r15
mov r8d, dword [r15]
cmp r8d, 4
jbe 0x140028bcc
add r8d, 0xfffffffc
lea rdx, [r15 + 4]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x80]
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r15, qword [r14 + 0x48]
mov qword [rbp - 0x70], r15
mov eax, dword [rbp - 0x80]
add eax, 4
cmp eax, 4
jbe 0x140028c82
mov esi, dword [r15]
cmp eax, esi
jne 0x140028c82
mov al, dil
mov byte [rsp + 0x51], al
cmp esi, 8
jne 0x140028bfc
cmp dword [r15 + 4], 0xfffffffc
sete al
jmp 0x140028bff
mov al, dil
test al, al
jne 0x14002930d
cmp esi, 8
jne 0x140028c16
cmp dword [r15 + 4], 0xfffffffd
sete al
jmp 0x140028c19
mov al, dil
test al, al
jne 0x140028c82
mov dword [r14 + 0x5c], edi
cmp esi, 8
jne 0x140028c30
cmp dword [r15 + 4], 0xffffffff
sete al
jmp 0x140028c33
mov al, dil
test al, al
je 0x140028c49
cmp byte [r14 + 0x58], dil
je 0x140028c82
mov byte [r14 + 0x59], 1
mov edx, 2
jmp 0x140028c70
cmp esi, 8
jne 0x140028c58
cmp dword [r15 + 4], 0xfffffffe
sete cl
jmp 0x140028c5b
mov cl, dil
test cl, cl
je 0x140028ca9
cmp byte [r14 + 0x58], dil
je 0x140028c82
and word [r14 + 0x58], 0
mov edx, 4
mov rcx, qword [r14 + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140024a15.0]
nop
test byte [0x140050ac0], 1
je 0x140028c96
mov r8, r12
mov rdx, r13
call fcn.140006400
cmp byte [r14 + 0x30], dil
je 0x140028ad0
or r15, 0xffffffffffffffff
jmp 0x140029379
mov byte [rsp + 0x53], dil
cmp esi, 0xc
jb 0x140028c82
movsd xmm0, qword [r15 + 4]
movsd qword [rbp - 0x78], xmm0
cmp esi, 0x10
jb 0x140028c82
mov eax, dword [r15 + 0xc]
mov dword [rsp + 0x60], eax
cmp esi, 0x11
jb 0x140028c82
mov al, byte [r15 + 0x10]
mov byte [rsp + 0x52], al
cmp esi, 0x12
jb 0x140028c82
mov al, byte [r15 + 0x11]
mov byte [rsp + 0x56], al
cmp esi, 0x13
jb 0x140028c82
cmp esi, 0x1b
jb 0x140028c82
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r12d, [rcx + 0xb]
call fcn.140035c78
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140028d15
mov rcx, rax
call fcn.140025070
mov qword [rsp + 0x70], rax
jmp 0x140028d1a
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x50], dil
lea r13, [r14 + 0x68]
xor edx, edx
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140028d39
cmp byte [r13 + 0x20], dil
je 0x140028d79
mov byte [r13 + 0x20], 1
mov ebx, edi
cmp dword [r13], edi
jbe 0x140028d6d
mov edi, ebx
mov rax, qword [r13 + 8]
mov rcx, qword [rax + rdi*8]
test rcx, rcx
je 0x140028d5e
call fcn.14002c054
mov rax, qword [r13 + 8]
and qword [rax + rdi*8], 0
inc ebx
cmp ebx, dword [r13]
jb 0x140028d46
xor edi, edi
mov dword [r13], edi
mov rcx, r13
call fcn.14002bc54
cmp byte [rbp - 0x20], dil
je 0x140028e59
lea rdx, [rsp + 0x54]
lea rcx, [rbp - 0x20]
call fcn.14002ba20
test al, al
je 0x140028e55
cmp byte [rsp + 0x54], dil
je 0x140028db6
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
mov rax, qword [rcx + 0x38]
cmp rax, qword [rcx + 0x40]
je 0x140028db6
mov qword [rcx + 0x40], rax
mov ebx, edi
cmp dword [rbp - 0x1c], edi
jbe 0x140028e55
mov r15, qword [rsp + 0x78]
mov r8, qword [r15]
mov r10, rdi
mov r9, qword [r8 + 0x38]
mov edx, ebx
test r9, r9
je 0x140028dfb
mov rax, qword [r8 + 0x40]
sub rax, r9
sar rax, 2
cmp r10, rax
jae 0x140028dfb
mov edx, ebx
mov rax, qword [rbp - 8]
mov ecx, dword [rax + rdx*4]
cmp dword [r9 + r10*4], ecx
je 0x140028e46
inc r10
jmp 0x140028dd2
mov rax, qword [rbp - 8]
mov r10d, dword [rax + rdx*4]
mov dword [rsp + 0x68], r10d
mov rdx, qword [r8 + 0x40]
test r9, r9
je 0x140028e38
mov rcx, rdx
sub rcx, r9
sar rcx, 2
mov rax, qword [r8 + 0x48]
sub rax, r9
sar rax, 2
cmp rcx, rax
jae 0x140028e38
lea rax, [rdx + 4]
mov dword [rdx], r10d
mov qword [r8 + 0x40], rax
jmp 0x140028e46
lea r9, [rsp + 0x68]
lea rcx, [r8 + 0x30]
call fcn.140034fa0
inc ebx
cmp ebx, dword [rbp - 0x1c]
jb 0x140028dc6
mov r15, qword [rbp - 0x70]
mov byte [rbp - 0x20], dil
mov dword [rbp - 0x68], edi
mov qword [rbp - 0x60], rdi
mov ebx, dword [rbp - 0x1c]
test ebx, ebx
je 0x1400292ef
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140035cbc
mov qword [rbp - 0x60], rax
test rax, rax
je 0x1400292ed
mov r8d, ebx
shl r8, 3
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x68], ebx
xor edi, edi
mov edx, dword [r13]
test edx, edx
je 0x140028edd
cmp edi, edx
jae 0x140028ebf
mov rax, qword [r13 + 8]
mov rbx, qword [rax + rdi*8]
jmp 0x140028ec1
xor ebx, ebx
test rbx, rbx
je 0x140028ed7
mov rcx, qword [rbx + 8]
call fcn.14002cd60
mov byte [rbx + 0x28], 0
mov edx, dword [r13]
inc edi
cmp edi, edx
jb 0x140028eb5
mov bl, byte [rsp + 0x50]
mov al, bl
xor edi, edi
cmp r12d, esi
jae 0x140029297
test al, al
jne 0x140029297
test bl, bl
jne 0x1400292cc
and dword [rsp + 0x5c], edi
lea ecx, [r12 + 1]
cmp ecx, r12d
jb 0x14002927e
cmp esi, ecx
jb 0x14002927e
mov eax, r12d
add rax, r15
mov r12d, ecx
mov dword [rsp + 0x58], r12d
cmp byte [rax], bl
je 0x140028f4d
add ecx, 4
cmp ecx, r12d
jb 0x14002927e
cmp esi, ecx
jb 0x14002927e
mov eax, dword [r12 + r15]
mov dword [rsp + 0x5c], eax
mov r12d, ecx
mov dword [rsp + 0x58], ecx
lea ecx, [r12 + 4]
cmp ecx, r12d
jb 0x140029253
cmp esi, ecx
jb 0x140029253
mov eax, r12d
add rax, r15
mov ebx, dword [rax]
mov r12d, ecx
mov dword [rsp + 0x58], r12d
add ecx, 4
cmp ecx, r12d
jb 0x14002924c
cmp esi, ecx
jb 0x14002924c
lea rax, [r15 + r12]
mov r13d, dword [rax]
mov r12d, ecx
mov dword [rsp + 0x58], r12d
add ecx, 4
cmp ecx, r12d
jb 0x14002924c
cmp esi, ecx
jb 0x14002924c
mov r15d, dword [r12 + r15]
mov dword [rsp + 0x58], ecx
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov r12, rax
test rax, rax
jne 0x140028fce
mov byte [rsp + 0x51], al
jmp 0x140029259
lea eax, [r15 + r15]
mov ecx, dword [rsp + 0x58]
lea edi, [rax + rcx]
cmp edi, ecx
jb 0x140028ffb
cmp esi, edi
jb 0x140028ffb
mov r8d, eax
mov edx, ecx
add rdx, qword [rbp - 0x70]
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov dword [rsp + 0x58], edi
mov r15b, 1
jmp 0x140029010
mov al, 1
mov byte [rsp + 0x51], al
xor r15b, r15b
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor r12d, r12d
mov rdi, r12
mov qword [rbp - 0x58], r12
test r15b, r15b
je 0x140029259
cmp ebx, 4
je 0x14002921b
cmp ebx, 5
je 0x140029176
cmp ebx, 6
je 0x14002909a
cmp ebx, 7
je 0x14002921b
lea eax, [rbx - 0x17]
cmp eax, 3
jbe 0x14002904d
cmp ebx, 0x1d
jne 0x140029066
mov rdx, r12
mov rcx, qword [rsp + 0x78]
call fcn.140034ae8
mov r13d, eax
cmp eax, 0x7f
je 0x14002925f
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x38], ecx
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
mov r9b, byte [rsp + 0x52]
mov edx, ebx
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400285b8
jmp 0x14002925b
xor eax, eax
mov bl, byte [rsp + 0x52]
mov byte [rsp + 0x55], bl
mov r13d, dword [rbp - 0x1c]
xor r15d, r15d
test r13d, r13d
je 0x14002913a
mov rbx, qword [rbp - 8]
test eax, eax
jne 0x1400290f6
mov edx, dword [rbx]
lea rcx, [r14 + 0x68]
call fcn.14002c574
mov rcx, rax
xor eax, eax
mov dword [rsp + 0x68], eax
test rcx, rcx
je 0x1400290e6
lea r8, [rsp + 0x68]
mov rdx, r12
call fcn.14002c7a0
mov eax, dword [rsp + 0x68]
inc r15d
add rbx, 4
cmp r15d, r13d
jb 0x1400290b8
test eax, eax
je 0x140029136
lea rcx, [r12 + rax*2]
test rcx, rcx
jne 0x140029103
xor ebx, ebx
jmp 0x140029115
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x14002942b
cmp r12, rbx
je 0x14002912a
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, rbx
mov qword [rbp - 0x58], rbx
mov bl, 1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14002913a
mov bl, byte [rsp + 0x55]
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.140034ae8
cmp eax, 0x7f
je 0x14002925f
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
mov r9b, bl
mov edx, 6
jmp 0x140029087
mov r15b, byte [rsp + 0x52]
cmp byte [rsp + 0x53], 0
jne 0x1400291d3
test r15b, r15b
jne 0x1400291d3
lea rax, [rsp + 0x53]
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x40], ecx
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
mov r8, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, r14
call fcn.140029438
jmp 0x14002925b
mov rdx, r12
mov rcx, qword [rsp + 0x78]
call fcn.140034ae8
mov ebx, eax
cmp eax, 0x7f
je 0x14002925f
mov r8, r12
mov edx, eax
lea rcx, [r14 + 0x68]
call fcn.14002c2c4
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x38], ecx
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
mov r9b, r15b
mov edx, 5
jmp 0x140029087
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x38], ecx
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
mov r9b, byte [rsp + 0x52]
mov r8, qword [rbp - 0x78]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call fcn.140028688
jmp 0x14002925b
mov byte [rsp + 0x51], 1
jmp 0x140029259
mov al, 1
mov byte [rsp + 0x51], al
mov al, 1
mov byte [rsp + 0x50], al
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r15, qword [rbp - 0x70]
mov r12d, dword [rsp + 0x58]
mov bl, byte [rsp + 0x50]
mov al, byte [rsp + 0x51]
jmp 0x140028ee3
mov bl, 1
mov byte [rsp + 0x50], bl
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, bl
mov byte [rsp + 0x51], bl
jmp 0x140028ee3
test bl, bl
jne 0x1400292cc
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rax]
call qword [case.0x140024a15.0]
cmp byte [rsp + 0x56], dil
je 0x1400292e7
mov rcx, qword [r14 + 0x28]
mov rax, qword [rcx]
xor edx, edx
mov rax, qword [rax + 8]
call qword [case.0x140024a15.0]
jmp 0x1400292e7
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400292e7
mov rcx, rbx
call fcn.1400250a4
mov rcx, rbx
call fcn.140035cb4
nop
mov rcx, qword [rbp - 0x60]
jmp 0x1400292f1
xor edi, edi
xor ecx, ecx
call fcn.140035cb4
mov qword [rbp - 0x60], rdi
lea r12, [0x14003d470]
lea r13, [0x14003d550]
jmp 0x140028c82
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r15, 0xffffffffffffffff
mov qword [r14 + 0x38], r15
inc dword [r14 + 0x5c]
jmp 0x140029365
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r15, 0xffffffffffffffff
mov qword [r14 + 0x38], r15
jmp 0x140029365
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_CancelIo]
cmp byte [r14 + 0x31], dil
je 0x140029361
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r15, 0xffffffffffffffff
mov qword [r14 + 0x38], r15
mov byte [r14 + 0x31], dil
jmp 0x140029365
or r15, 0xffffffffffffffff
test byte [0x140050ac0], 1
je 0x140029379
mov r8, r12
mov rdx, r13
call fcn.140006400
cmp byte [r14 + 0x30], dil
je 0x1400289fa
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsi]
test rbx, rbx
je 0x1400293e3
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400293a1
call qword [sym.imp.elscore.dll_MappingFreeServices]
mov qword [rbx], rdi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400293af
call fcn.140035cb4
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
cmp qword [rbx + 0x28], 8
jb 0x1400293cb
mov rcx, qword [rbx + 0x10]
call fcn.140035cb4
mov qword [rbx + 0x28], 7
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x10], di
mov rcx, rbx
call fcn.140035cb4
mov rcx, rsi
call fcn.140035cb4
nop
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 8]
cmp rcx, rax
je 0x1400293fe
call fcn.140035cb4
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001648
int3