Function at 0x180038fb0
Capabilities:
Create thread
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x3d0], rbx
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rdx
xor r15d, r15d
mov dword [rsp + 0x68], r15d
cmp byte [0x1800b88d7], r15b
je 0x180039029
cmp byte [0x1800b88df], r15b
jne 0x180039029
call fcn.180002740
nop
mov rcx, rsi
call fcn.180002740
mov al, 1
jmp 0x180039931
mov qword [rbp], setsockopt
mov qword [rbp - 8], r15
mov byte [rbp - 0x18], 0
xor eax, eax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x20], setsockopt
mov qword [rbp + 0x18], r15
mov byte [rbp + 8], al
lea ecx, [rax + 0x20]
call fcn.180046b20
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18003907c
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.18002bc50
jmp 0x18003907f
mov rax, r15
mov qword [rbp + 0x28], rax
cmp qword [rdi + 0x18], 0x10
jb 0x18003908f
mov rax, qword [rdi]
jmp 0x180039092
mov rax, rdi
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], setsockopt
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x48], 0
mov r8d, 7
lea rdx, str.appName
lea rcx, [rbp - 0x48]
call fcn.1800024c0
mov byte [rbp - 0x28], 0x2e
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rax, qword [rbp - 0x48]
mov qword [rbp - 0x20], rax
mov cl, 1
call fcn.180048848
mov rbx, rax
mov qword [rsp + 0x38], 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 0x180039109
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 8]
call fcn.1800263a0
nop
lea rcx, [rbp - 0x48]
call fcn.180002740
cmp qword [rsi + 0x18], 0x10
jb 0x180039136
mov rax, qword [rsi]
jmp 0x180039139
mov rax, rsi
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], setsockopt
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x48], 0
mov r8d, 0xa
lea rdx, str.appVersion
lea rcx, [rbp - 0x48]
call fcn.1800024c0
mov byte [rbp - 0x28], 0x2e
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rax, qword [rbp - 0x48]
mov qword [rbp - 0x20], rax
mov cl, 1
call fcn.180048848
mov rbx, rax
mov qword [rsp + 0x38], 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 0x1800391b0
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 8]
call fcn.1800263a0
nop
lea rcx, [rbp - 0x48]
call fcn.180002740
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x70]
call fcn.18004c910
lea rbx, [0x18007ff28]
mov qword [rbp + 0x70], rbx
lea r13, [0x18007ff30]
mov qword [rbp + 0x80], r13
mov dword [rsp + 0x68], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x108], rax
mov dword [rbp + 0x104], 0x80
mov qword [rbp + 0x78], r15
xor r8d, r8d
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x108]
call fcn.180019a80
nop
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x7c], edx
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x6c], edx
mov rax, qword [rbp + 0x70]
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 + 0x70], rax
mov rax, qword [rbp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x6c], edx
lea rax, [rbp + 0x88]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x88]
call fcn.18000d250
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x88], rax
mov qword [rbp + 0xf0], r15
mov dword [rbp + 0xf8], r15d
mov qword [rsp + 0x48], setsockopt
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x80]
call fcn.180028940
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x180039370
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x18003936b
test cl, 0x1f
je 0x18003933e
call fcn.180057aec
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18003934d
call fcn.180057aec
int3
sub rcx, rax
cmp rcx, 8
jae 0x18003935c
call fcn.180057aec
int3
cmp rcx, 0x27
jbe 0x180039368
call fcn.180057aec
int3
mov rcx, rax
call fcn.180046964
mov qword [rbp + 0x68], setsockopt
mov qword [rbp + 0x60], r15
mov byte [rbp + 0x50], 0
mov r8d, 0x23
lea rdx, str._sgep_v1_clientAgent_cloudApp_login
lea rcx, [rbp + 0x50]
call fcn.1800024c0
nop
mov qword [rbp + 0x48], setsockopt
mov qword [rbp + 0x40], r15
mov byte [rbp + 0x30], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.Authorization:_Basic
lea rcx, [rbp + 0x30]
call fcn.1800024c0
nop
mov qword [rsp + 0x48], setsockopt
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
mov r8d, 8
lea rdx, str.skyguard
lea rcx, [rsp + 0x30]
call fcn.1800024c0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.18003d460
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1800030c0
nop
lea rcx, [rsp + 0x70]
call fcn.180002740
mov r8d, 2
lea rdx, [0x18007c924]
lea rcx, [rbp + 0x30]
call fcn.1800031f0
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.180045c00
nop
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rbp + 0x50]
lea rdx, [0x1800b8900]
lea rcx, [0x1800b88e0]
call fcn.180040ef0
test eax, eax
sete r14b
lea rcx, [rsp + 0x70]
call fcn.180002740
lea r12, vtable.std::ios_base.0
test r14b, r14b
je 0x180039880
mov byte [0x1800b88d7], 1
mov byte [0x1800b88dc], 1
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x170]
call fcn.18004c910
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x180], r13
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x208], rax
mov dword [rsp + 0x68], setsockopt
xor r8d, r8d
lea rdx, [rbp + 0x188]
lea rcx, [rbp + 0x170]
call fcn.1800290c0
nop
mov rax, qword [rbp + 0x170]
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 + 0x170], rax
mov rax, qword [rbp + 0x170]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x16c], edx
lea rax, [rbp + 0x188]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x188]
call fcn.18000d250
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x188], rax
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
xor r9d, r9d
mov r8, qword [rbp - 8]
lea rcx, [rbp + 0x188]
call fcn.180034e40
nop
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x48]
call fcn.180029230
nop
mov qword [rsp + 0x48], setsockopt
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x170]
call fcn.180026980
nop
lea rcx, [rsp + 0x30]
call fcn.180002740
mov qword [rsp + 0x48], setsockopt
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
mov r8d, 9
lea rdx, str.sessionId
lea rcx, [rsp + 0x30]
call fcn.1800024c0
mov byte [rsp + 0x50], 0x2e
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.180022290
mov rdx, rax
lea rcx, [0x1800b8920]
call fcn.180010330
lea rcx, [rsp + 0x70]
call fcn.180002740
nop
lea rcx, [rsp + 0x30]
call fcn.180002740
mov qword [rsp + 0x48], setsockopt
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
mov r8d, 0xc
lea rdx, str.sessionToken
lea rcx, [rsp + 0x30]
call fcn.1800024c0
mov byte [rsp + 0x50], 0x2e
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.180022290
mov rdx, rax
lea rcx, [0x1800b8940]
call fcn.180010330
lea rcx, [rsp + 0x70]
call fcn.180002740
nop
lea rcx, [rsp + 0x30]
call fcn.180002740
mov qword [rbp - 0x78], setsockopt
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], 0
mov r8d, setsockopt
lea rdx, str.heartbeatInterval
lea rcx, [rsp + 0x70]
call fcn.1800024c0
mov byte [rbp - 0x70], 0x2e
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rax, qword [rsp + 0x70]
mov qword [rbp - 0x68], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.18003e4b0
mov rcx, rax
call fcn.1800225c0
mov dword [0x1800ad0b8], eax
lea rcx, [rsp + 0x70]
call fcn.180002740
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.180016070
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.isRepostTabChanged
lea rcx, [rsp + 0x70]
call fcn.1800024c0
mov byte [rbp - 0x70], 0x2e
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rax, qword [rsp + 0x70]
mov qword [rbp - 0x68], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.18003e4b0
mov rcx, rax
call fcn.1800229b0
mov byte [0x1800b88dd], al
lea rcx, [rsp + 0x70]
call fcn.180002740
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.180016070
mov r8d, 0x1b
lea rdx, str.isRepostDownloadListChanged
lea rcx, [rsp + 0x70]
call fcn.1800024c0
mov byte [rbp - 0x70], 0x2e
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rax, qword [rsp + 0x70]
mov qword [rbp - 0x68], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.18003e4b0
mov rcx, rax
call fcn.1800229b0
mov byte [0x1800b88de], al
lea rcx, [rsp + 0x70]
call fcn.180002740
cmp byte [0x1800b88df], 0
jne 0x18003981d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x1800320c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003981d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x1800b88df], 0
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x180039855
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 - 0x48]
call fcn.180002740
nop
lea rcx, [rbp + 0x208]
call fcn.18002ce80
nop
mov qword [rbp + 0x208], r12
lea rcx, [rbp + 0x208]
call fcn.180048c00
nop
lea rcx, str.cloud_app_login:_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rbp + 0x30]
call fcn.180002740
nop
lea rcx, [rbp + 0x50]
call fcn.180002740
nop
lea rcx, [rbp + 0x108]
call fcn.18002ce80
nop
mov qword [rbp + 0x108], r12
lea rcx, [rbp + 0x108]
call fcn.180048c00
nop
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x180039908
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 + 8]
call fcn.180002740
nop
lea rcx, [rbp - 0x18]
call fcn.180002740
nop
mov rcx, rdi
call fcn.180002740
nop
mov rcx, rsi
call fcn.180002740
movzx eax, r14b
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret