Function at 0x10065a8c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, qword [rsp + 0xc0]
mov esi, edx
mov dword [rsp + 0xb0], r8d
mov r12d, r9d
mov r8d, r9d
lea rax, [rsi + rsi*8]
lea rdx, str.Blocking_read_JSON_for_id__d
mov r14, rcx
mov rbx, rsi
lea r15, [rsi + rax*4]
shl r15, 3
lea r13, [rcx + r15 + 0x18]
mov edi, dword [rcx + r15 + 0x1c]
mov qword [rsp + 0x30], r13
call sym.vim.exe_ch_log
add dword [0x10072c820], 1
test r12d, r12d
jns 0x10065aac0
lea rax, [rsi + rsi*8]
lea rax, [rsi + rax*4]
lea rsi, [r14 + rax*8]
jmp 0x10065a967
mov edx, ebx
mov rcx, r14
call fcn.1006560b0
mov qword [rsp + 0x20], rbp
mov r8d, r12d
mov edx, ebx
mov r9d, 1
mov rcx, r14
mov r15d, eax
call fcn.100655d80
cmp eax, 1
je 0x10065a990
test r15d, r15d
je 0x10065a9e0
cmp edi, 4
je 0x10065a9d0
cmp qword [rsi + 0x38], 0
jne 0x10065a938
mov qword [rsp + 0x20], rbp
mov r9d, 1
mov r8d, r12d
mov edx, ebx
mov rcx, r14
call fcn.100655d80
cmp eax, 1
jne 0x10065a9e0
mov r8d, r12d
lea rdx, str.Received_JSON_for_id__d
mov rcx, r14
mov r13d, 1
call sym.vim.exe_ch_log
test r12d, r12d
jns 0x10065aa68
sub dword [0x10072c820], 1
mov eax, r13d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
mov edx, ebx
mov rcx, r14
call sym.vim.exe_channel_collapse
jmp 0x10065a96c
mov edx, ebx
mov rcx, r14
call fcn.100656580
mov r15, rax
call sym.vim.exe_channel_parse_messages
mov r13d, eax
test eax, eax
jne 0x10065a967
mov edx, ebx
mov rcx, r14
call fcn.100656580
test rax, rax
je 0x10065aa15
cmp r15, rax
jne 0x10065a967
cmp qword [rsi + 0x80], 0
mov r15d, dword [rsp + 0xb0]
jne 0x10065ab43
mov edx, dword [rsi + 0x18]
cmp edx, 0xffffffff
jne 0x10065aafd
cmp r15d, dword [rsp + 0xb0]
jne 0x10065a967
cmp edx, 0xffffffff
je 0x10065a9a8
mov r8d, r12d
lea rdx, str.Timed_out_on_id__d
mov rcx, r14
call sym.vim.exe_ch_log
jmp 0x10065a9a8
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x50]
test edx, edx
jle 0x10067f39d
mov rcx, qword [rax + 0x60]
xor eax, eax
jmp 0x10065aa8f
add eax, 1
add rcx, 4
cmp edx, eax
je 0x10067f39d
cmp r12d, dword [rcx]
jne 0x10065aa80
mov rdi, qword [rsp + 0x30]
sub edx, 1
mov dword [rdi + 0x50], edx
cmp edx, eax
jle 0x10065a9b1
sub edx, eax
movsxd r8, edx
lea rdx, [rcx + 4]
shl r8, 2
call sub.msys_2.0.dll_memmove
jmp 0x10065a9b1
mov eax, dword [r13 + 0x5c]
lea r15, [r14 + r15 + 0x68]
test eax, eax
je 0x10065ab2e
mov edx, 1
mov rcx, r15
call sym.vim.exe_ga_grow
cmp eax, 1
jne 0x10065a925
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 0x50]
mov rax, qword [rcx + 0x60]
mov dword [rax + rdx*4], r12d
add dword [rcx + 0x50], 1
jmp 0x10065a925
mov r8d, r15d
mov rcx, r14
mov dword [rsp + 0x3c], edx
call fcn.100659b10
mov edx, dword [rsp + 0x3c]
test eax, eax
jne 0x10065aa37
lea r8, str.channel_read_json_block
mov edx, ebx
mov rcx, r14
call fcn.100659c10
jmp 0x10065a967
mov r8d, 0xa
mov edx, 4
mov rcx, r15
call sym.vim.exe_ga_init2
jmp 0x10065aacd
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.100672e40
mov rcx, qword [rsi + 0x90]
movabs rax, 0x20c49ba5e353f7cf
sub rcx, qword [rsp + 0x48]
imul rcx
mov r8, qword [rsi + 0x88]
sub r8, qword [rsp + 0x40]
sar rcx, 0x3f
imul r8d, r8d, 0x3e8
sar rdx, 7
sub rdx, rcx
lea eax, [r8 + rdx + 1]
cmp dword [rsp + 0xb0], eax
mov r15d, eax
cmovle r15d, dword [rsp + 0xb0]
test eax, eax
jns 0x10065aa2b
mov qword [rsi + 0x80], 0
mov r15d, dword [rsp + 0xb0]
jmp 0x10065aa2b
mov edx, r12d
lea rcx, str.INTERNAL:_channel_remove_block_id:_cannot_find_id__d
call sym.vim.exe_siemsg
nop
jmp 0x10065a9b1