Function at 0x180047870
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x248]
sub rsp, 0x340
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800f30e0]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rdi, rcx
mov qword [rbp - 0x78], rcx
xor esi, esi
mov dword [rsp + 0x38], esi
cmp byte [0x1800ffb8c], sil
je 0x180047e79
cmp byte [0x1800ffb8d], sil
je 0x180047e79
mov qword [rbp + 0x10], SafeArrayGetLBound
mov qword [rbp + 8], rsi
mov byte [rbp - 8], sil
lea rbx, [0x1800ffc10]
cmp rbx, rcx
je 0x1800478fc
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
mov rcx, rbx
call fcn.1800024a0
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], SafeArrayGetLBound
mov qword [rbp - 0x60], rsi
mov byte [rbp - 0x70], al
lea ecx, [rax + 0x20]
call fcn.180059380
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18004793f
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.180016160
jmp 0x180047942
mov rax, rsi
mov qword [rbp - 0x50], rax
cmp qword [0x1800ffc28], 0x10
cmovae rbx, qword [0x1800ffc10]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x68], SafeArrayGetLBound
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
mov r8d, 0xa
lea rdx, str.currentTab
lea rcx, [rsp + 0x50]
call fcn.1800025d0
mov byte [rsp + 0x70], 0x2e
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov cl, 1
call fcn.18005b16c
mov rbx, rax
mov qword [rsp + 0x48], 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 0x1800479d6
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.180037570
nop
lea rcx, [rsp + 0x50]
call fcn.180002870
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x20]
call fcn.180078610
lea rcx, [0x180000000]
lea rax, [rcx + 0xb3210]
mov qword [rbp + 0x20], rax
lea rax, [rcx + 0xb3218]
mov qword [rbp + 0x30], rax
mov dword [rsp + 0x38], 1
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb8], rax
mov dword [rbp + 0xb4], 0x80
mov qword [rbp + 0x28], rsi
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0xb8]
call fcn.180029470
nop
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x2c], edx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rbp + rcx + 0x1c], edx
mov rax, qword [rbp + 0x20]
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 + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1c], edx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x38]
call fcn.180012bc0
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x38], rax
mov qword [rbp + 0xa0], rsi
mov dword [rbp + 0xa8], esi
mov qword [rsp + 0x68], SafeArrayGetLBound
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x50], 0
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x30]
call fcn.18003b320
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180047b80
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180047b7b
test cl, 0x1f
je 0x180047b4e
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180047b5d
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180047b6c
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180047b78
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov qword [rbp - 0x10], SafeArrayGetLBound
mov qword [rbp - 0x18], rsi
mov byte [rbp - 0x28], 0
mov r8d, 0x28
lea rdx, str._sgep_v1_clientAgent_cloudApp_currentTab
lea rcx, [rbp - 0x28]
call fcn.1800025d0
nop
mov qword [rbp - 0x30], SafeArrayGetLBound
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x48], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.Authorization:_Basic
lea rcx, [rbp - 0x48]
call fcn.1800025d0
nop
lea rcx, [rsp + 0x50]
call fcn.18004e5d0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1800031f0
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x180047c45
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x180047c40
test cl, 0x1f
je 0x180047c13
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180047c22
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180047c31
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180047c3d
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov r8d, 2
lea rdx, [0x1800b3470]
lea rcx, [rbp - 0x48]
call fcn.180003320
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.18002ee80
nop
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rbp - 0x28]
lea rdx, [0x1800ffbb0]
lea rcx, [0x1800ffb90]
call fcn.180052da0
test eax, eax
sete sil
lea rcx, [rsp + 0x50]
call fcn.180002870
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x120]
call fcn.180078610
lea rdx, str.cloud_app_currentTab__s:__s
lea rcx, [rbp + 0x120]
call fcn.180012550
nop
cmp qword [rdi + 0x18], 0x10
jb 0x180047cda
mov rax, qword [rdi]
jmp 0x180047cdd
mov rax, rdi
mov qword [rsp + 0x40], rax
lea rcx, str.success
lea rax, str.failed
test sil, sil
cmovne rax, rcx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rax, [fcn.180046ce0]
mov qword [rsp + 0x58], rax
lea rax, [0x18000b0e0]
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x164], 0
je 0x180047d33
lea rcx, [rbp + 0x120]
call fcn.180024c60
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x120]
call fcn.18000b4a0
mov r8d, dword [rbp + 0x15c]
inc r8d
mov dword [rbp + 0x15c], r8d
cmp qword [rbp + 0x150], 0
je 0x180047d9d
mov r9d, dword [rbp + 0x160]
cmp r8d, r9d
jge 0x180047d9d
mov r10, qword [rbp + 0x138]
movsxd rcx, r8d
mov rax, rcx
shr rax, 5
lea rdx, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [rdx], eax
je 0x180047d9d
inc r8d
mov dword [rbp + 0x15c], r8d
cmp r8d, r9d
jl 0x180047d72
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x120]
call fcn.180032bb0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x120]
call fcn.18002e760
cmp qword [rax + 0x18], 0x10
jb 0x180047dc9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x50]
call fcn.180002870
nop
lea rcx, [rbp + 0x120]
call fcn.180017930
nop
lea rcx, [rbp - 0x48]
call fcn.180002870
nop
lea rcx, [rbp - 0x28]
call fcn.180002870
nop
lea rcx, [rbp + 0xb8]
call fcn.180017ed0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.18005b5e0
nop
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x180047e57
lea rcx, [rbx + 0x11]
call fcn.180026020
mov edx, 1
lea r8d, [rdx + 0x6f]
mov rcx, qword [rbx + 8]
call fcn.18001f8d0
mov edx, 0x20
mov rcx, rbx
call fcn.180059820
lea rcx, [rbp - 0x70]
call fcn.180002870
nop
lea rcx, [rbp - 8]
call fcn.180002870
nop
mov rcx, rdi
call fcn.180002870
movzx eax, sil
jmp 0x180047e80
call fcn.180002870
xor al, al
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.180059260
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret