Function at 0x1800387c0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor esi, esi
mov dword [rsp + 0x38], esi
mov qword [rbp - 0x20], setsockopt
mov qword [rbp - 0x28], rsi
mov byte [rbp - 0x38], sil
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp + 8], rax
mov qword [rbp], setsockopt
mov qword [rbp - 8], rsi
mov byte [rbp - 0x18], al
lea ecx, [rsi + 0x20]
call fcn.180046b20
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180038858
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.18002bc50
jmp 0x18003885b
mov rax, rsi
mov qword [rbp + 8], rax
lea rax, [0x1800b8960]
cmp qword [0x1800b8978], 0x10
cmovae rax, qword [0x1800b8960]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x50], setsockopt
mov qword [rbp - 0x58], rsi
mov byte [rbp - 0x68], 0
mov r8d, 0xa
lea rdx, str.currentTab
lea rcx, [rbp - 0x68]
call fcn.1800024c0
mov byte [rbp - 0x48], 0x2e
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rax, qword [rbp - 0x68]
mov qword [rbp - 0x40], rax
mov cl, 1
call fcn.180048848
mov rbx, rax
mov qword [rsp + 0x78], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + select]
test rax, rax
je 0x1800388ed
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x18]
call fcn.1800263a0
nop
lea rcx, [rbp - 0x68]
call fcn.180002740
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x50]
call fcn.18004c910
lea r15, [0x18007ff28]
mov qword [rbp + 0x50], r15
lea r12, [0x18007ff30]
mov qword [rbp + 0x60], r12
mov dword [rsp + 0x38], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xe4], 0x80
mov qword [rbp + 0x58], rsi
xor r8d, r8d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0xe8]
call fcn.180019a80
nop
lea rax, [rbp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x5c], edx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x4c], edx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x4c], edx
lea rax, [rbp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x68]
call fcn.18000d250
nop
lea r13, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x68], r13
mov qword [rbp + 0xd0], rsi
mov dword [rbp + 0xd8], esi
mov qword [rbp - 0x78], setsockopt
mov qword [rbp - 0x80], rsi
mov byte [rsp + 0x70], 0
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x60]
call fcn.180028940
nop
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x180038a8b
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x180038a86
test cl, 0x1f
je 0x180038a59
call fcn.180057aec
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180038a68
call fcn.180057aec
int3
sub rcx, rax
cmp rcx, 8
jae 0x180038a77
call fcn.180057aec
int3
cmp rcx, 0x27
jbe 0x180038a83
call fcn.180057aec
int3
mov rcx, rax
call fcn.180046964
mov qword [rbp + 0x48], setsockopt
mov qword [rbp + 0x40], rsi
mov byte [rbp + 0x30], 0
mov r8d, 0x27
lea rdx, str._sgep_v1_clientAgent_cloudApp_heartbeat
lea rcx, [rbp + 0x30]
call fcn.1800024c0
nop
mov qword [rbp + 0x28], setsockopt
mov qword [rbp + 0x20], rsi
mov byte [rbp + 0x10], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.Authorization:_Basic
lea rcx, [rbp + 0x10]
call fcn.1800024c0
nop
lea rcx, [rsp + 0x40]
call fcn.18003dbb0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1800030c0
nop
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x180038b50
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x180038b4b
test cl, 0x1f
je 0x180038b1e
call fcn.180057aec
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180038b2d
call fcn.180057aec
int3
sub rcx, rax
cmp rcx, 8
jae 0x180038b3c
call fcn.180057aec
int3
cmp rcx, 0x27
jbe 0x180038b48
call fcn.180057aec
int3
mov rcx, rax
call fcn.180046964
mov r8d, 2
lea rdx, [0x18007c924]
lea rcx, [rbp + 0x10]
call fcn.1800031f0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x50]
call fcn.180045c00
nop
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rbp + 0x30]
lea rdx, [0x1800b8900]
lea rcx, [0x1800b88e0]
call fcn.180040ef0
mov ebx, eax
mov rcx, qword [rsp + 0x58]
cmp rcx, 0x10
jb 0x180038bff
inc rcx
mov rdx, qword [rsp + 0x40]
cmp rcx, 0x1000
jb 0x180038bf7
test dl, 0x1f
je 0x180038bca
call fcn.180057aec
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x180038bd9
call fcn.180057aec
int3
sub rdx, rax
cmp rdx, 8
jae 0x180038be8
call fcn.180057aec
int3
cmp rdx, 0x27
jbe 0x180038bf4
call fcn.180057aec
int3
mov rdx, rax
mov rcx, rdx
call fcn.180046964
test ebx, ebx
sete dil
lea r14, vtable.std::ios_base.0
test dil, dil
je 0x180038e67
mov byte [0x1800b88dc], 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x150]
call fcn.18004c910
mov qword [rbp + 0x150], r15
mov qword [rbp + 0x160], r12
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x1e8], rax
mov dword [rsp + 0x38], setsockopt
xor r8d, r8d
lea rdx, [rbp + 0x168]
lea rcx, [rbp + 0x150]
call fcn.1800290c0
nop
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x150], rax
mov rax, qword [rbp + 0x150]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x14c], edx
lea rax, [rbp + 0x168]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x168]
call fcn.18000d250
nop
mov qword [rbp + 0x168], r13
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
xor r9d, r9d
mov r8, qword [rbp - 0x28]
lea rcx, [rbp + 0x168]
call fcn.180034e40
nop
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x68]
call fcn.180029230
nop
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x150]
call fcn.180026980
nop
lea rcx, [rsp + 0x40]
call fcn.180002740
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.isRepostTabChanged
lea rcx, [rsp + 0x40]
call fcn.1800024c0
mov byte [rsp + 0x60], 0x2e
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.18003e4b0
mov rcx, rax
call fcn.1800229b0
mov byte [0x1800b88dd], al
lea rcx, [rsp + 0x40]
call fcn.180002740
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
mov r8d, 0x1b
lea rdx, str.isRepostDownloadListChanged
lea rcx, [rsp + 0x40]
call fcn.1800024c0
mov byte [rsp + 0x60], 0x2e
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.18003e4b0
mov rcx, rax
call fcn.1800229b0
mov byte [0x1800b88de], al
lea rcx, [rsp + 0x40]
call fcn.180002740
nop
mov rbx, qword [rbp - 0x48]
test rbx, rbx
je 0x180038e3a
lea rcx, [rbx + 0x11]
call fcn.18003a3b0
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.1800325c0
mov edx, 0x20
mov rcx, rbx
call fcn.18004736c
lea rcx, [rbp - 0x68]
call fcn.180002740
nop
lea rcx, [rbp + 0x1e8]
call fcn.18002ce80
nop
mov qword [rbp + 0x1e8], r14
lea rcx, [rbp + 0x1e8]
call fcn.180048c00
nop
jmp 0x180038ed7
mov byte [0x1800b88dc], 0
cmp ebx, 0x191
jne 0x180038ed7
lea rcx, str.401_Unauthorized__just_relogin_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [0x1800b88df], 1
lea rax, [rbp - 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x68]
call fcn.18003ecd0
mov rbx, rax
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
mov r8d, 2
lea rdx, [0x180078120]
lea rcx, [rsp + 0x40]
call fcn.1800024c0
nop
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180038fb0
lea rcx, str.cloud_app_heartbeat:_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rbp + 0x10]
call fcn.180002740
nop
lea rcx, [rbp + 0x30]
call fcn.180002740
nop
lea rcx, [rbp + 0xe8]
call fcn.18002ce80
nop
mov qword [rbp + 0xe8], r14
lea rcx, [rbp + 0xe8]
call fcn.180048c00
nop
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x180038f5f
lea rcx, [rbx + 0x11]
call fcn.18003a3b0
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.1800325c0
mov edx, 0x20
mov rcx, rbx
call fcn.18004736c
lea rcx, [rbp - 0x18]
call fcn.180002740
nop
lea rcx, [rbp - 0x38]
call fcn.180002740
movzx eax, dil
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.180046a00
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret