Function at 0x1400052cc
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402feed0]
xor rax, rbp
mov qword [rbp + 0x170], rax
mov ebx, r9d
mov qword [rbp + 0x28], rcx
mov rdi, rcx
mov dword [rbp + 0x10], ebx
movzx ecx, word [r8]
mov rsi, r8
mov r14, rdx
call qword [sym.imp.WS2_32.dll_ntohs]
xor r15d, r15d
mov word [rbp + 8], ax
movzx r12d, ax
cmp dword [r14 + 0xbf4], r15d
je 0x140005349
movzx ebx, ax
lea rcx, str.ProcessCommand__u_..._n
mov edx, ebx
call fcn.1400010e4
mov edx, ebx
lea rcx, str.ProcessCommand__u_...
call fcn.1400a8cb4
mov ebx, dword [rbp + 0x10]
cmp dword [r14 + 0xd40], 3
je 0x140005894
mov rcx, qword [rdi + 0x3e0]
mov rcx, qword [rcx + 0x2a8]
call fcn.14019fb60
movzx edx, r12w
mov r13, rax
mov qword [rbp + 0x20], rax
sub edx, 1
je 0x1400055fe
sub edx, 1
je 0x1400053d8
mov r13d, 2
cmp edx, r13d
jne 0x14000587a
cmp dword [r14 + 0xbf4], r15d
je 0x1400053b3
lea rcx, str.Authentication_Complete..._n
call fcn.1400010e4
lea rcx, str.Authentication_Complete...
call fcn.1400a8cb4
or dword [r14 + 0xd40], r13d
cmp dword [r14 + 0xd40], 3
jne 0x14000587a
mov rdx, r14
mov rcx, rdi
call fcn.140004a48
jmp 0x14000587a
cmp ebx, 8
jle 0x14000587a
cmp dword [r14 + 0xbf4], r15d
je 0x1400053f6
lea rcx, str.Processing_Authentication_Verification...
call fcn.1400a8cb4
mov eax, dword [rsp]
sub rsp, 0x20
lea r12, [rsp + 0x30]
mov eax, dword [r12]
lea rax, [rsi + 4]
mov qword [r12], rax
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
lea rax, [rsi + 4]
add rax, rcx
mov word [r12 + 8], cx
mov qword [r12 + 0xa], rax
movzx eax, bx
sub ax, cx
sub ax, 4
mov word [r12 + 0x12], ax
lea eax, [rcx + 4]
cmp ebx, eax
jle 0x14000587a
mov r8d, ecx
mov qword [rbp + 8], r15
mov ebx, 0x30
lea rcx, [rbp + 8]
mov rdx, r12
mov dword [rbp + 0x10], ebx
call fcn.1400d0d10
test rax, rax
jne 0x140005479
lea rcx, str.Invalid_server_certificate_r_n
call fcn.1400010e4
jmp 0x14000587a
call fcn.1400d2560
mov rcx, qword [rbp + 8]
lea rsi, [0x14030c380]
mov r8, rsi
lea r9, [rbp + 0x10]
mov rdx, rax
call fcn.1400d3730
lea rdi, [r14 + 0xc40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1401da590
test eax, eax
je 0x1400054e7
call fcn.1400d2550
mov rcx, qword [rbp + 8]
lea r9, [rbp + 0x10]
mov rdx, rax
mov r8, rsi
call fcn.1400d3730
mov r8d, 0x20
mov rdx, rdi
mov rcx, rsi
call fcn.1401da590
test eax, eax
je 0x1400054e7
lea rcx, str.Server_certificate_mismatch_r_n
jmp 0x14000546f
lea rcx, [rbp + 0x40]
call fcn.1400ce1b0
lea rdi, [0x14030d380]
mov rcx, r13
mov rdx, rdi
call fcn.14009daac
mov r8, rbx
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.1400ce240
lea rdx, [r14 + 0xd10]
mov r8, rbx
lea rcx, [rbp + 0x40]
call fcn.1400ce240
lea rdx, [r14 + 0xce0]
mov r8, rbx
lea rcx, [rbp + 0x40]
call fcn.1400ce240
lea rdx, [rbp + 0x40]
mov rcx, rsi
call fcn.1400ce190
mov rcx, qword [rbp + 8]
call fcn.1400d4560
mov rcx, rax
mov r13, rax
call fcn.1400d1380
movzx ecx, word [r12 + 0x12]
mov r8d, ebx
mov r9, qword [r12 + 0xa]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov ecx, 0x2a1
mov qword [rbp + 0x18], rax
call fcn.1400d1cc0
mov ecx, 1
cmp eax, ecx
jne 0x1400055be
or dword [r14 + 0xd40], ecx
lea r8d, [rcx + 0x10]
mov rcx, qword [r14 + 0x48]
lea rdx, str.ServerTlsCertHash
mov qword [rsp + 0x28], r15
mov r9, rdi
mov qword [rsp + 0x20], rbx
call fcn.1400ad724
mov rdx, qword [rbp + 0x28]
mov rcx, r14
call fcn.140004b84
jmp 0x1400055df
lea rcx, str.Invalid_server_signature_r_n
call fcn.1400010e4
cmp dword [r14 + 0xbf4], r15d
je 0x1400055df
lea rcx, str.Invalid_Server_Signature
call fcn.1400a8cb4
mov rcx, qword [rbp + 0x18]
call fcn.1400d3990
mov rcx, r13
call fcn.1400d1100
mov rcx, qword [rbp + 8]
call fcn.1400d0c40
jmp 0x14000587a
cmp ebx, 0x62
jne 0x14000587a
cmp dword [r14 + 0xbf4], r15d
je 0x14000561c
lea rcx, str.Processing_Authentication_Request...
call fcn.1400a8cb4
lea rdi, [0x14030d380]
mov rcx, r13
mov rdx, rdi
call fcn.14009daac
lea r12, [rsi + 2]
mov ebx, 0x30
mov r8d, ebx
mov rdx, r12
mov rcx, rdi
call fcn.1401da590
test eax, eax
je 0x1400056a4
mov dword [rbp + 0x10], ebx
test r13, r13
je 0x140005668
call fcn.1400d2560
mov rdx, rax
lea r9, [rbp + 0x10]
mov r8, rdi
mov rcx, r13
call fcn.1400d3730
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call fcn.1401da590
test eax, eax
je 0x1400056a4
lea rcx, str.Bad_server_certificate_hash_r_n
call fcn.1400010e4
cmp dword [r14 + 0xbf4], r15d
je 0x14000587a
lea rcx, str.Bad_server_certificate_hash
call fcn.1400a8cb4
jmp 0x14000587a
lea rcx, [r14 + 0xce0]
mov r9, rbx
lea r8, [rsi + 0x32]
mov rdx, rbx
call section..text
mov r13d, 2
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [0x14030d384]
mov word [0x14030d380], ax
mov qword [rbp + 0x30], rcx
lea rdx, [rbp + 0x30]
mov rcx, qword [r14 + 0xc80]
call fcn.1400d0df0
movzx ecx, ax
mov dword [rbp + 0x10], eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14030d382], ax
cmp qword [r14 + 0xc88], r15
je 0x1400057cf
lea rcx, [rbp + 0x40]
call fcn.1400ce1b0
mov r8, rbx
lea rcx, [rbp + 0x40]
mov rdx, r12
call fcn.1400ce240
mov r8, rbx
lea rdx, [r14 + 0xce0]
lea rcx, [rbp + 0x40]
call fcn.1400ce240
lea rdx, [r14 + 0xd10]
mov r8, rbx
lea rcx, [rbp + 0x40]
call fcn.1400ce240
lea rsi, [0x14030c380]
mov rcx, rsi
lea rdx, [rbp + 0x40]
call fcn.1400ce190
mov rcx, qword [r14 + 0xc88]
call fcn.1400d1380
movsx r12, word [rbp + 0x10]
lea r9, [rdi + 4]
mov qword [rsp + 0x28], rax
mov edx, 0xfffc
sub edx, r12d
mov r14, rax
mov dword [rbp + 8], edx
lea rax, [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x20], rax
add r9, r12
mov r8d, ebx
mov ecx, 0x2a1
call fcn.1400d1b70
lea ecx, [r13 - 1]
cmp eax, ecx
jne 0x1400057c2
mov r9d, dword [rbp + 8]
mov r8, rdi
mov rcx, qword [rbp + 0x28]
add r9d, 4
add r9d, r12d
mov edx, r13d
call fcn.1400af9e4
mov rcx, r14
call fcn.1400d3990
jmp 0x14000587a
mov r9, rbx
lea rcx, [0x14030c380]
mov r8, r12
mov edx, 0x1000
call section..text
mov r9, rbx
lea r8, [r14 + 0xce0]
mov edx, 0xfd0
lea rcx, [0x14030c3b0]
call section..text
lea r8, [r14 + 0xd10]
mov r9, rbx
mov edx, 0xfa0
lea rcx, [0x14030c3e0]
call section..text
mov rcx, qword [r14 + 0xc78]
lea r9, [rbp + 0x18]
mov qword [rbp + 0x18], r15
call fcn.1400132c0
mov dword [rbp + 8], eax
test eax, eax
jle 0x14000587a
movsx rbx, word [rbp + 0x10]
lea rcx, [rdi + 4]
mov r8, qword [rbp + 0x18]
mov edx, 0xfffc
sub rdx, rbx
movsxd r9, eax
add rcx, rbx
call section..text
mov r9d, dword [rbp + 8]
mov r8, rdi
mov rcx, qword [rbp + 0x28]
add r9d, 4
add r9d, ebx
mov edx, r13d
call fcn.1400af9e4
mov rcx, qword [rbp + 0x18]
call fcn.1401e18f8
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x14000689f
mov rcx, rax
call fcn.1400d0c40
jmp 0x14000689f
mov eax, 0xa
cmp r12w, ax
jb 0x14000689f
cmp byte [rsi], 0x7b
je 0x140006521
mov eax, 0x3e8
cmp r12w, ax
jae 0x140006521
mov edi, 4
cmp ebx, edi
jl 0x14000689f
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbp], ax
cmp dword [r14 + 0xbf4], r15d
je 0x140005910
movzx ebx, ax
lea rcx, str.BinaryCommand__u___u_..._n
movzx edi, r12w
mov r8d, ebx
mov edx, edi
call fcn.1400010e4
mov r8d, ebx
lea rcx, str.BinaryCommand__u___u_...
mov edx, edi
call fcn.1400a8cb4
mov ebx, dword [rbp + 0x10]
mov edi, 4
movzx ecx, r12w
mov r13d, 2
sub ecx, 0xa
je 0x140005954
sub ecx, 1
je 0x140006253
sub ecx, 1
je 0x1400061ad
sub ecx, 1
je 0x140005da0
sub ecx, 1
je 0x140005c5f
sub ecx, r13d
je 0x140005a36
cmp ecx, edi
jne 0x14000689f
lea rax, [rsi + 0x34]
movsxd rcx, ebx
mov qword [rbp + 0x18], rax
lea rax, [rcx - 0x34]
mov qword [rbp + 0x10], rax
cmp dword [r14 + 0x28c], r15d
jne 0x14000689f
cmp rcx, 0x34
jbe 0x1400064fc
lea r12, str.CoreModule
mov edx, 0x400
mov rcx, r12
call fcn.1401e26ac
mov rcx, qword [r14 + 0x48]
mov r8, rax
call fcn.1400ae080
mov qword [rbp + 0x20], rax
mov ebx, 0x30
test rax, rax
je 0x1400059c3
lea rdx, [rsi + 4]
mov r8d, ebx
mov rcx, rax
call fcn.1401da590
test eax, eax
je 0x1400064c4
cmp word [rbp + 8], 0x14
mov qword [r14 + 0xbf8], r15
jne 0x14000631d
mov rdx, qword [rbp + 0x10]
lea r9, [rbp + 8]
xor r8d, r8d
mov qword [rbp + 8], r15
lea rcx, [rsi + 0x34]
call fcn.140052904
test eax, eax
jne 0x1400062f5
mov rdx, qword [rbp + 8]
mov rcx, qword [r14]
call fcn.14009f290
mov rdx, qword [rbp + 0x10]
lea r9, [rbp + 8]
mov r8, rax
mov qword [rbp + 0x30], rax
lea rcx, [rsi + 0x34]
call fcn.140052904
test eax, eax
jne 0x1400062ed
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 8]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x10], rcx
jmp 0x1400062f0
lea rcx, str.Server_verified_meshcore...
call fcn.1400010e4
cmp qword [r14 + 0xbf8], r15
je 0x140005c4e
mov rcx, qword [r14 + 0x10]
call fcn.14001efc8
mov rcx, qword [r14 + 0x10]
lea r8, str.clearTimeout
or r12d, 0xffffffff
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
lea edx, [r12 - 1]
mov r8d, r12d
call fcn.14001d1a8
mov rdx, qword [r14 + 0xbf8]
mov rcx, qword [r14 + 0x10]
call fcn.14001f9d8
mov rcx, qword [r14 + 0x10]
lea edx, [r12 + 2]
call fcn.14001ae80
mov rcx, qword [r14 + 0x10]
call fcn.14001fc4c
lea rsi, str.CoreModule
mov qword [r14 + 0xbf8], r15
mov rcx, rsi
mov edx, 0x400
call fcn.1401e26ac
mov rcx, qword [r14 + 0x48]
xor r9d, r9d
mov r8, rax
mov qword [rsp + 0x20], r15
mov rdx, rsi
call fcn.1400adc28
movsxd rbx, eax
mov dword [rbp + 8], ebx
cmp ebx, edi
jg 0x140005aef
lea rcx, str._meshcore_not_found..._n
jmp 0x140005c55
lea rcx, str._Launching_meshcore..._n
call fcn.1400010e4
mov r9d, dword [r14 + 0xc00]
test r9d, r9d
je 0x140005b95
lea r8, str.attachDebugger__webport:__d__wait:_1__.then_function__prt___console.log_Point_Browser_for_Debug_to_port:___prt______n
mov edx, 0xff
lea rcx, [rbp + 0x40]
call fcn.140001138
mov esi, dword [rbp + 8]
xor r9d, r9d
movsxd rbx, eax
xor r8d, r8d
add esi, ebx
xor edx, edx
movsxd rdi, esi
mov rcx, rdi
call fcn.14009f32c
mov edx, 0x400
mov qword [rbp + 0x20], rax
lea rcx, str.CoreModule
call fcn.1401e26ac
mov r9, qword [rbp + 0x20]
lea rdx, str.CoreModule
mov rcx, qword [r14 + 0x48]
add r9, 0xfffffffffffffffc
add r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, rax
call fcn.1400adc28
mov ecx, dword [rbp + 8]
lea r8, [rbp + 0x40]
mov rdi, qword [rbp + 0x20]
add ecx, 0xfffffffc
movsxd rdx, ecx
mov r9, rbx
lea rcx, [rdi + 4]
call section..text
lea eax, [rsi - 4]
jmp 0x140005bce
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14009f32c
mov edx, 0x400
mov rcx, rsi
mov rdi, rax
call fcn.1401e26ac
mov rcx, qword [r14 + 0x48]
mov r9, rdi
mov r8, rax
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call fcn.1400adc28
mov eax, ebx
mov rcx, qword [r14 + 0x10]
lea r8d, [rax - 4]
lea rdx, [rdi + 4]
mov dword [rsp + 0x20], reloc.WS2_32.dll_listen
lea r9, str.CoreModule.js
call fcn.1400923f0
test eax, eax
jne 0x140005c01
mov rcx, qword [r14 + 0x10]
xor edx, edx
call fcn.14001addc
test eax, eax
je 0x140005c41
mov rax, qword [r14]
test rax, rax
je 0x140005c0d
mov r15, qword [rax + 8]
mov rcx, qword [r14 + 0x10]
xor r8d, r8d
mov edx, r12d
call fcn.14001e028
lea r9, str.Error_Executing_MeshCore:__s
mov qword [rsp + 0x20], rax
mov r8d, r13d
mov edx, 0x4100
mov rcx, r15
call fcn.1400ab710
mov rcx, qword [r14 + 0x10]
call fcn.14001fc4c
mov rcx, rdi
call fcn.1401e18f8
jmp 0x14000689f
lea rcx, str._meshcore_already_running..._n
call fcn.1400010e4
jmp 0x14000689f
cmp dword [r14 + 0xbe4], r15d
jne 0x14000689f
mov rcx, qword [r14 + 0x38]
lea rdx, str..update.exe
mov dword [rbp + 8], r15d
call fcn.1400039c4
mov edi, 1
mov qword [rbp + 0x30], rax
or r12d, 0xffffffff
lea r13d, [rdi + 3]
lea rcx, [0x140309380]
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rcx
mov r9d, r12d
mov ecx, 0xfde9
mov qword [rbp + 0x18], r15
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x1402d7ba0]
lea rdx, [0x140309380]
lea rcx, [rbp + 0x18]
call fcn.1401dfec0
mov r9, qword [rbp + 0x18]
test r9, r9
je 0x140005cff
lea eax, [rbx - 4]
mov r8, rdi
movsxd rdx, eax
lea rcx, [rsi + 4]
call fcn.1401e1664
mov rcx, qword [rbp + 0x18]
mov rbx, rax
call fcn.1401e0470
test rbx, rbx
jne 0x140005d23
mov eax, dword [rbp + 8]
add eax, edi
mov dword [rbp + 8], eax
cmp eax, r13d
jge 0x140005d69
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 0x30]
mov ebx, dword [rbp + 0x10]
jmp 0x140005c91
cmp dword [rbp + 8], r13d
jge 0x140005d69
mov ecx, reloc.WS2_32.dll_ntohl
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp]
mov word [0x14030d380], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14030d382], ax
mov r9d, r13d
lea r8, [0x14030d380]
mov edx, 2
mov rcx, qword [rbp + 0x28]
call fcn.1400af9e4
jmp 0x14000689f
mov rcx, qword [r14 + 0x10]
call fcn.14009f278
test eax, eax
je 0x14000689f
mov rcx, qword [r14 + 0x10]
cmp qword [rcx - 0x10], 8
jne 0x14000689f
mov r9d, 0xf08
lea rdx, str.require_MeshAgent_.SendCommand__action:_sessions__type_:_msg__value_:__1:__msg:_Self_Update_FAILED._Write_Error_while_writing_update_block__icon:_3_____
call fcn.14001b984
jmp 0x14000689f
cmp dword [r14 + 0xbe4], r15d
jne 0x14000689f
mov rcx, qword [r14 + 0x38]
lea rdx, str..update.exe
call fcn.1400039c4
mov qword [rbp + 0x18], rax
mov r12, rax
cmp ebx, edi
jne 0x140005de7
cmp dword [r14 + 0xbec], r15d
je 0x1400061a0
mov r8d, 0xcf9
lea rcx, str.SelfUpdate____Starting_download...
jmp 0x14000618c
cmp ebx, 0x34
jne 0x14000689f
lea rdx, [rbp + 0x140]
mov rcx, r12
call fcn.140004644
test eax, eax
jne 0x140006176
lea rdx, [rsi + 4]
lea r8d, [rbx - 4]
lea rcx, [rbp + 0x140]
call fcn.1401da590
test eax, eax
jne 0x140006176
mov rax, qword [r14 + 0x10]
mov rdi, qword [rax + 0x70]
sub rdi, qword [rax + 0x68]
sar rdi, 4
cmp dword [r14 + 0xbec], r15d
je 0x140005e5d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0xd03
lea rdx, str...meshcore_agentcore.c
lea rcx, str.SelfUpdate____Download_Complete..._Hash_verified
call fcn.1400a8b44
lea rsi, [0x14030c380]
cmp dword [r14 + 0xbf0], r15d
je 0x140005f04
mov r9, qword [r14 + 0x38]
lea r8, str._s.zip
mov edx, 0x1000
mov rcx, rsi
call fcn.140001138
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.1400a8014
mov ebx, eax
test eax, eax
jne 0x140005ec2
mov rdx, qword [r14 + 0x38]
lea rcx, [rbp + 0x20]
call fcn.1400a8014
mov ebx, eax
cmp dword [r14 + 0xbec], r15d
je 0x140005eec
mov r8d, 0xd0d
lea rcx, str.SelfUpdate____Overriding_update_with_same_version...
jmp 0x140005ed8
cmp dword [r14 + 0xbec], r15d
je 0x140005eec
mov r8d, 0xd11
lea rcx, str.SelfUpdate____Overriding_update_with_provided_zip...
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea rdx, str...meshcore_agentcore.c
call fcn.1400a8b44
mov rdx, qword [rbp + 0x20]
mov r8d, ebx
mov rcx, r12
call fcn.1400a8158
cmp dword [r14 + 0xbf0], r15d
jne 0x140005f0d
cmp dword [r14 + 0xbe8], r15d
je 0x140005f80
mov edx, 0x4000
lea rcx, [0x140266d48]
call fcn.1401e26ac
mov edx, 0x400
lea rcx, str.disableUpdate
mov rbx, rax
call fcn.1401e26ac
mov rcx, qword [r14 + 0x48]
lea r9, [0x140266d48]
mov r8, rax
mov qword [rsp + 0x28], r15
lea rdx, str.disableUpdate
mov qword [rsp + 0x20], rbx
call fcn.1400ad724
cmp dword [r14 + 0xbec], r15d
je 0x140005f80
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0xd18
lea rdx, str...meshcore_agentcore.c
lea rcx, str.SelfUpdate____Disabling_future_updates...
call fcn.1400a8b44
mov rcx, qword [r14 + 0x10]
lea rdx, str.require_zip_reader_
mov r9d, 0xe08
call fcn.14001b984
mov rcx, qword [r14 + 0x10]
or r12d, 0xffffffff
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str.isZip
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
lea r13d, [r12 - 1]
mov edx, r13d
mov r8d, r12d
call fcn.14001d1a8
mov rdx, qword [rbp + 0x18]
mov rcx, qword [r14 + 0x10]
call fcn.14001ed98
mov rcx, qword [r14 + 0x10]
lea ebx, [r12 + 2]
mov edx, ebx
call fcn.14001ae80
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001dcc8
test eax, eax
je 0x14000615e
cmp dword [r14 + 0xbec], r15d
je 0x140006028
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0xd22
lea rdx, str...meshcore_agentcore.c
lea rcx, str.SelfUpdate____Unzipping_update...
call fcn.1400a8b44
mov rcx, qword [r14 + 0x10]
lea rdx, str.require_update_helper_
mov r9d, 0xe08
call fcn.14001b984
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str.start
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov r8d, r12d
mov edx, r13d
call fcn.14001d1a8
mov rdx, qword [rbp + 0x18]
mov rcx, qword [r14 + 0x10]
call fcn.14001ed98
mov rcx, qword [r14 + 0x10]
mov edx, ebx
call fcn.14001ae80
test eax, eax
jne 0x140006102
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str.then
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov r8d, r12d
mov edx, r13d
call fcn.14001d1a8
mov rcx, qword [r14 + 0x10]
lea rdx, [0x1400051cc]
mov ebx, 0x18075380
mov esi, 6
mov r9d, ebx
mov dword [rsp + 0x20], esi
mov r8d, r12d
call fcn.14001f530
mov rcx, qword [r14 + 0x10]
lea rdx, [0x140005238]
mov r9d, ebx
mov dword [rsp + 0x20], esi
mov r8d, r12d
call fcn.14001f530
mov rcx, qword [r14 + 0x10]
lea edx, [rsi - 4]
call fcn.14001ae80
jmp 0x14000614e
cmp dword [r14 + 0xbec], r15d
je 0x14000614e
mov rcx, qword [r14 + 0x10]
xor r8d, r8d
mov edx, r12d
call fcn.14001e028
mov r9, rax
lea r8, str.SelfUpdate____Error_Unzipping:__s
mov edx, 0x1000
mov rcx, rsi
call fcn.140001138
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0xd32
lea rdx, str...meshcore_agentcore.c
mov rcx, rsi
call fcn.1400a8b44
mov rcx, qword [r14 + 0x10]
mov edx, edi
call fcn.14001ce60
jmp 0x14000689f
mov rcx, qword [r14 + 0x10]
mov edx, edi
call fcn.14001ce60
mov rcx, r14
call fcn.140004e5c
jmp 0x14000689f
cmp dword [r14 + 0xbec], r15d
je 0x1400061a0
mov r8d, 0xd3e
lea rcx, str.SelfUpdate____Download_Complete..._Hash_FAILED__aborting_update...
lea rdx, str...meshcore_agentcore.c
mov dword [rsp + 0x20], r15d
xor r9d, r9d
call fcn.1400a8b44
mov rcx, r12
call fcn.14009d350
jmp 0x14000689f
mov ecx, recv
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp]
mov word [0x14030d380], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14030d382], ax
lea rcx, [0x14030d384]
cmp dword [r14 + 0xbe4], r15d
je 0x1400061ed
xor edx, edx
lea r8d, [rdx + 0x30]
call fcn.1401da3e0
jmp 0x140006248
cmp dword [r14 + 0xbe8], r15d
je 0x140006232
mov edx, 0xffff
mov r8d, 0x30
call fcn.1401da3e0
cmp dword [r14 + 0xbec], r15d
je 0x140006248
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, 0xcde
lea rdx, str...meshcore_agentcore.c
lea rcx, str.SelfUpdate____Forcing_Update...
call fcn.1400a8b44
jmp 0x140006248
mov ebx, 0x30
lea r8, [r14 + 0xc10]
mov edx, ebx
mov r9, rbx
call section..text
mov r9d, gethostname
jmp 0x1400063d9
mov edx, 0x400
lea rcx, str.CoreModule
call fcn.1401e26ac
mov rcx, qword [r14 + 0x48]
mov r8, rax
call fcn.1400ae080
mov ecx, dword [r14 + 0x28c]
mov ebx, 0x30
neg ecx
mov r12, rax
sbb esi, esi
xor edx, edx
and esi, ebx
lea r8d, [rbx + 4]
add esi, edi
lea rdi, [0x14030d380]
mov rcx, rdi
call fcn.1401da3e0
lea ecx, [rbx - 0x25]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp]
mov word [0x14030d380], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14030d382], ax
cmp dword [r14 + 0x28c], r15d
jne 0x1400062e2
test r12, r12
je 0x1400062e2
mov r9d, ebx
lea rcx, [0x14030d384]
mov r8, r12
mov edx, ebx
call section..text
lea esi, [rbx + 4]
mov r9d, esi
mov r8, rdi
jmp 0x1400063e0
mov rax, r15
test rax, rax
jne 0x14000631d
mov rax, qword [r14]
test rax, rax
je 0x140006301
mov r15, qword [rax + 8]
lea r9, str.MeshCore:_INFLATE_error
mov r8d, r13d
mov edx, 0x4100
mov rcx, r15
call fcn.1400ab710
jmp 0x14000689f
movsxd rax, dword [rbp + 0x10]
mov r8d, 0xa
mov r9, qword [rbp + 0x18]
mov rdx, r12
mov rcx, qword [r14 + 0x48]
mov qword [rsp + 0x20], rax
call fcn.1400ada5c
mov edx, 0x400
mov rcx, r12
call fcn.1401e26ac
mov rcx, qword [r14 + 0x48]
mov r8, rax
call fcn.1400ae080
lea rdx, [rsi + 4]
mov qword [rbp + 0x20], rax
mov r8, rbx
mov rcx, rax
call fcn.1401da590
test eax, eax
je 0x1400063e8
mov edx, 0x400
mov rcx, r12
call fcn.1401e26ac
mov rdx, r12
mov rcx, qword [r14 + 0x48]
mov r8, rax
call fcn.1400ae288
mov rax, qword [r14]
test rax, rax
je 0x140006394
mov r15, qword [rax + 8]
lea r9, str.MeshCore:_Stop
mov r8d, r13d
mov edx, 0x4100
mov rcx, r15
call fcn.1400ab710
mov rcx, r14
call fcn.1400044a4
mov ecx, ntohl
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp]
mov word [0x14030d380], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14030d382], ax
mov r9d, edi
lea r8, [0x14030d380]
mov edx, r13d
jmp 0x140005d5b
mov rax, qword [r14]
test rax, rax
je 0x1400063f6
mov rcx, qword [rax + 8]
jmp 0x1400063f9
mov rcx, r15
lea r9, str.MeshCore:_Restart
mov r8d, r13d
mov edx, 0x4100
call fcn.1400ab710
mov rcx, r14
call fcn.1400044a4
mov rdi, rax
test rax, rax
je 0x14000648c
mov r8, qword [rbp + 0x10]
lea r9, str.CoreModule.js
mov rdx, qword [rbp + 0x18]
add r8d, 0xfffffffc
add rdx, 4
mov dword [rsp + 0x20], reloc.WS2_32.dll_listen
mov rcx, rax
call fcn.1400923f0
test eax, eax
jne 0x140006456
xor edx, edx
mov rcx, rdi
call fcn.14001addc
test eax, eax
je 0x1400064bb
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rdi
call fcn.14001e028
lea rsi, [0x14030c380]
mov r9, rax
mov rcx, rsi
lea r8, [0x14026533c]
mov edx, 0x1000
call fcn.140001138
mov rcx, rdi
call fcn.14001fc4c
jmp 0x140006493
lea rsi, str.Restart_Failed__because_Script_Engine_Stop_failed
mov rax, qword [r14]
test rax, rax
je 0x14000649f
mov r15, qword [rax + 8]
lea r9, str.MeshCore:_Error:__s
mov qword [rsp + 0x20], rsi
mov r8d, r13d
mov edx, 0x4100
mov rcx, r15
call fcn.1400ab710
mov rcx, qword [r14 + 0x48]
call fcn.1400ae5ec
mov ecx, ntohl
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp]
mov word [0x14030d380], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r8, qword [rbp + 0x20]
lea rcx, [0x14030d384]
mov word [0x14030d382], ax
mov edx, 0xfffc
jmp 0x140006240
cmp ebx, edi
jne 0x14000689f
mov edx, 0x400
lea rcx, str.CoreModule
call fcn.1401e26ac
lea rdx, str.CoreModule
jmp 0x14000637c
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x10]
call fcn.1400030c8
mov rcx, qword [r14 + 0x10]
lea r8, str.emit
or r12d, 0xffffffff
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
lea edx, [r12 - 1]
mov r8d, r12d
call fcn.14001d1a8
mov rcx, qword [r14 + 0x10]
lea rdx, str.Command
call fcn.14001ed98
cmp byte [rsi], 0x7b
mov rcx, qword [r14 + 0x10]
jne 0x140006821
call fcn.14001efc8
mov rcx, qword [r14 + 0x10]
lea r8, str.JSON
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
lea r8, str.parse
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
lea edx, [r12 - 2]
mov r8d, r12d
call fcn.14001d1a8
mov rcx, qword [r14 + 0x10]
call fcn.14001fce8
mov rcx, qword [r14 + 0x10]
mov rdx, rsi
movsxd rbx, ebx
mov r8, rbx
call fcn.14001ece4
mov rcx, qword [r14 + 0x10]
lea edi, [r12 + 2]
mov edx, edi
call fcn.14001addc
mov rcx, qword [r14 + 0x10]
lea r13d, [r12 + 3]
test eax, eax
je 0x1400065ff
call fcn.14001fc4c
mov rcx, qword [r14 + 0x10]
mov r8, rbx
mov rdx, rsi
call fcn.14001ece4
jmp 0x14000686f
lea r8, str.action
mov edx, r12d
call fcn.14001c594
test eax, eax
je 0x14000686f
mov rcx, qword [r14 + 0x10]
lea r9, [0x140265288]
lea r8, str.action
mov qword [rsp + 0x20], r15
mov edx, r12d
call fcn.14006a248
lea rdx, str.ping
mov rcx, rax
mov rbx, rax
call fcn.1401ed8b0
test eax, eax
jne 0x1400066c0
cmp dword [r14 + 0xd50], r15d
jne 0x1400066b4
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x10]
call fcn.1400030c8
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str.emit
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov r8d, r12d
mov edx, 0xfffffffe
call fcn.14001d1a8
mov rcx, qword [r14 + 0x10]
lea rdx, str.idleTimeoutModeChanged
call fcn.14001ed98
mov rcx, qword [r14 + 0x10]
mov edx, edi
call fcn.14001ae80
mov rcx, qword [r14 + 0x10]
call fcn.14001fce8
mov dword [r14 + 0xd50], edi
jmp 0x14000686f
lea rdx, str.pong
mov rcx, rbx
call fcn.1401ed8b0
test eax, eax
jne 0x14000686f
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x10]
call fcn.1400030c8
mov rcx, qword [r14 + 0x10]
lea r8, [0x140265790]
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d9b8
test rax, rax
je 0x140006816
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str.shift
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov r8d, r12d
mov edx, 0xfffffffe
call fcn.14001d1a8
mov rbx, qword [r14 + 0x10]
mov r8d, r13d
mov rcx, rbx
xor edx, edx
call fcn.14001ad00
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.14003b5a4
mov rcx, qword [r14 + 0x10]
lea r8, [0x140265840]
mov edx, r12d
call fcn.14001c594
test eax, eax
je 0x1400067d2
mov rcx, qword [r14 + 0x10]
call fcn.14001efc8
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str.clearTimeout
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov r8d, r12d
mov edx, 0xfffffffe
call fcn.14001d1a8
mov rcx, qword [r14 + 0x10]
lea r8, [0x140265840]
mov edx, 0xfffffffc
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov edx, edi
call fcn.14001ae80
mov rcx, qword [r14 + 0x10]
call fcn.14001fce8
mov rcx, qword [r14 + 0x10]
mov edx, r12d
call fcn.14001d1f0
mov rcx, qword [r14 + 0x10]
lea r8, str._res
mov edx, r12d
call fcn.14001c0c8
mov rcx, qword [r14 + 0x10]
mov r8d, r12d
mov edx, 0xfffffffe
call fcn.14001d1a8
mov rcx, qword [r14 + 0x10]
xor edx, edx
call fcn.14001ae80
mov rcx, qword [r14 + 0x10]
call fcn.14001fce8
mov rcx, qword [r14 + 0x10]
call fcn.14001fce8
jmp 0x14000686f
xor edx, edx
lea r8d, [rdx + 3]
call fcn.14001f934
mov rcx, qword [r14 + 0x10]
mov edi, 0xfffffffc
mov edx, edi
call fcn.14001d2c0
mov rcx, qword [r14 + 0x10]
mov r8, rsi
movsxd rbx, ebx
mov edx, edi
mov r9, rbx
call fcn.14001ac9c
lea ecx, [rdi + 5]
mov r9, rbx
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, qword [r14 + 0x10]
mov edx, edi
call fcn.14001f688
lea r13d, [rdi + 6]
mov edi, r13d
mov rcx, qword [r14 + 0x10]
mov edx, r13d
call fcn.14001ae80
test eax, eax
je 0x140006894
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140006894
lea rdx, [0x140265288]
call fcn.14006ae40
mov rcx, qword [r14 + 0x10]
mov edx, edi
call fcn.14001fb2c
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1401d8f10
lea rsp, [rbp + 0x188]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret