Function at 0x140022eb0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xd0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r12, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x70], 7
xor r13d, r13d
mov qword [r11 - 0x78], r13
mov word [r11 - 0x88], r13w
lea r8d, [r13 + 0x20]
lea rdx, str.IMInstaller::SearchTokenIntoFile
lea rcx, [rsp + 0x78]
call fcn.140001870
nop
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0x32]
lea r8d, [r13 + 1]
mov rcx, rdi
call fcn.1400144a0
test rbx, rbx
jne 0x140022f92
test rbp, rbp
jne 0x140022f92
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
lea rax, str.Wrong_parameters
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0xa]
lea r8d, [r13 + 1]
mov rcx, rdi
call fcn.1400144a0
jmp 0x14002327a
mov dword [r12], r13d
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 1
lea r14, str.Parameter___i_:__s
mov qword [rsp + 0x20], r14
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rdi
call fcn.1400144a0
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], r14
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rdi
call fcn.1400144a0
mov qword [rsp + 0x40], r13
lea r8, [0x1400af8b4]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400682f4
test eax, eax
jne 0x14002322a
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002322a
xor edx, edx
lea r8d, [rax + 2]
call fcn.140068994
mov rcx, qword [rsp + 0x40]
call fcn.140068878
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140068994
lea r11d, [rbx + 1]
movsxd rcx, r11d
mov edx, 1
call fcn.1400672d4
mov rsi, rax
test rax, rax
je 0x1400231e7
mov r9, qword [rsp + 0x40]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140068694
cmp rbx, rax
jne 0x14002318d
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], r13
mov word [rsp + 0xa8], r13w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140027820
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140001500
nop
cmp qword [rsp + 0x70], 8
jb 0x140023100
mov rcx, qword [rsp + 0x58]
call fcn.140065920
lea rcx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rcx, qword [rsp + 0xa8]
mov rdx, rbp
call fcn.140003e20
test rax, rax
je 0x140023173
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
lea rax, str.Found
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rdi
call fcn.1400144a0
mov dword [r12], 1
cmp qword [rsp + 0xc0], 8
jb 0x1400231dd
mov rcx, qword [rsp + 0xa8]
call fcn.140065920
jmp 0x1400231dd
lea rbx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rbx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.fread
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov r9, rbx
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rdi
call fcn.1400144a0
mov rcx, rsi
call fcn.14006664c
jmp 0x14002321e
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
lea rax, str.Insufficient_memory
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rdi
call fcn.1400144a0
mov rcx, qword [rsp + 0x40]
call fcn.140068ad0
jmp 0x14002327a
lea rbx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rbx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.fopen
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov r9, rbx
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rdi
call fcn.1400144a0
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
mov dword [rsp + 0x28], 1
lea rax, str.Return_code__0x_x_
mov qword [rsp + 0x20], rax
mov edx, 0x28
lea r8d, [rdx - 0x27]
mov rcx, rdi
call fcn.1400144a0
lea r9, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae r9, qword [rsp + 0x80]
lea rcx, str.Function_end
mov qword [rsp + 0x20], rcx
mov edx, 0x32
lea r8d, [rdx - 0x31]
mov rcx, rdi
call fcn.1400144a0
nop
cmp qword [rsp + 0x98], 8
jb 0x140023310
mov rcx, qword [rsp + 0x80]
call fcn.140065920
mov eax, 1
jmp 0x140023315
mov eax, 1
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140064b70
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret