Function at 0x180026170
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x830
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rsp + 0x820], rax
test byte [rcx + 0x4244], 4
mov rdi, rcx
je 0x1800262c8
mov rcx, qword [rcx + 0x4130]
lea rdx, [rsp + 0x20]
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1800261b0
lea rdx, [0x18004a278]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
jne 0x1800261ec
lea rdx, reloc.ca_core.dll_Ordinal_47
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x1800261ef
mov byte [rax], 0
mov rcx, qword [rdi + 0x42d0]
call qword [sym.imp.libssl_3.dll_SSL_new]
mov edx, dword [rdi + 0x110]
mov rcx, rax
mov qword [rdi + 0x4128], rax
call qword [sym.imp.libssl_3.dll_SSL_set_fd]
mov rcx, qword [rdi + 0x4128]
xor r8d, r8d
lea edx, [r8 + 0x37]
lea r9, [rsp + 0x20]
call qword [sym.imp.libssl_3.dll_SSL_ctrl]
mov rcx, qword [rdi + 0x4128]
call qword [sym.imp.libssl_3.dll_SSL_connect]
test eax, eax
jns 0x1800262c8
call qword [sym.imp.libcrypto_3.dll_ERR_load_ERR_strings]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.libcrypto_3.dll_OPENSSL_init_crypto]
call qword [sym.imp.libcrypto_3.dll_ERR_get_error]
lea rcx, [rsp + 0x421]
xor edx, edx
mov r8d, 0x3ff
mov ebx, eax
mov byte [rsp + 0x420], 0
call sub.MSVCR100.dll_memset
lea rdx, [rsp + 0x420]
mov ecx, ebx
call qword [sym.imp.libcrypto_3.dll_ERR_error_string]
lea rcx, [rsp + 0x420]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x180041e5c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea r8, str.RTMP_Connect1
lea rdx, str._s__TLS_Connect_failed
mov ecx, 1
call fcn.180022fd0
mov rcx, rdi
call fcn.18002c240
xor eax, eax
jmp 0x18002658e
mov qword [rsp + reloc.mfc100.dll_Ordinal_2136], rsi
mov ebp, 1
mov qword [rsp + 0x860], r12
mov qword [rsp + 0x868], r13
test byte [rdi + 0x4244], bpl
je 0x180026502
xor r13d, r13d
lea r8, [0x180041f02]
mov r9d, ebp
xor edx, edx
mov rcx, rdi
mov dword [rdi + 0x88], ebp
mov qword [rdi + 0x98], r13
mov dword [rdi + 0xa0], r13d
call fcn.18002c950
nop dword [rax]
lea rcx, [rdi + 0x110]
call fcn.18002c580
cmp dword [rdi + 0x114], 0xd
jl 0x180026320
mov rcx, qword [rdi + 0x118]
lea rdx, str.HTTP_1.1_200
mov r8d, Ordinal_16
call qword [sym.imp.MSVCR100.dll_strncmp]
test eax, eax
jne 0x1800263d6
movsxd rcx, dword [rdi + 0x114]
mov rax, qword [rdi + 0x118]
lea rdx, str._r_n_r_n
mov byte [rcx + rax], r13b
mov rcx, qword [rdi + 0x118]
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x180026320
mov rcx, qword [rdi + 0x118]
lea rdx, str.Content_
add rcx, 0xd
call qword [sym.imp.MSVCR100.dll_strstr]
mov rbx, rax
test rax, rax
je 0x1800263d6
lea rdx, str.length:
lea rcx, [rbx + 8]
mov r8d, 7
call qword [sym.imp.MSVCR100.dll__strnicmp]
test eax, eax
je 0x180026404
lea rdx, str.Content_
lea rcx, [rbx + 8]
call qword [sym.imp.MSVCR100.dll_strstr]
mov rbx, rax
test rax, rax
jne 0x1800263a2
lea r8, str.RTMP_Connect1
lea rdx, str._s__Could_not_connect_for_handshake
mov ecx, 4
mov dword [rdi + 0x88], r13d
call fcn.180022fd0
mov rcx, rdi
call fcn.18002c240
xor eax, eax
jmp 0x180026576
test rbx, rbx
je 0x1800263d6
lea rcx, [rbx + 0x10]
call qword [sym.imp.MSVCR100.dll_atoi]
lea rdx, str._r_n_r_n
lea rcx, [rbx + 0x10]
movsxd rsi, eax
call qword [sym.imp.MSVCR100.dll_strstr]
mov rbx, rax
test rax, rax
je 0x1800263d6
add rbx, 4
cmp qword [rdi + 0x98], r13
mov ecx, esi
cmovne ecx, ebp
movsxd rdx, ecx
movsxd rcx, dword [rdi + 0x114]
add rcx, qword [rdi + 0x118]
add rdx, rbx
cmp rdx, rcx
ja 0x180026320
mov eax, dword [rdi + 0x118]
dec dword [rdi + 0x94]
mov qword [rdi + 0x118], rbx
sub eax, ebx
add dword [rdi + 0x114], eax
cmp qword [rdi + 0x98], r13
jne 0x1800264d8
lea eax, [rsi + 1]
mov dword [rdi + 0xa0], esi
movsxd rcx, eax
call qword [sym.imp.MSVCR100.dll_malloc]
mov qword [rdi + 0x98], rax
test rax, rax
je 0x1800263d6
mov byte [rax], reloc.ca_core.dll_Ordinal_47
mov rcx, qword [rdi + 0x98]
lea eax, [rsi - 1]
movsxd r8, eax
mov rdx, rbx
inc rcx
call sub.MSVCR100.dll_memcpy
mov rax, qword [rdi + 0x98]
mov byte [rsi + rax], r13b
mov dword [rdi + 0x114], r13d
mov dword [rdi + 0x88], r13d
jmp 0x180026502
movsx eax, byte [rbx]
dec dword [rdi + 0x114]
mov dword [rdi + 0x88], r13d
mov dword [rdi + 0x8c], eax
lea eax, [rsi - 1]
mov dword [rdi + 0x90], eax
lea rax, [rbx + 1]
mov qword [rdi + 0x118], rax
lea r8, str.RTMP_Connect1
lea rdx, str._s__..._connected__handshaking
mov ecx, 4
call fcn.180022fd0
mov rcx, rdi
call fcn.1800246d0
lea r8, str.RTMP_Connect1
test eax, eax
jne 0x180026536
lea rdx, str._s__handshake_failed.
jmp 0x180026561
lea rdx, str._s__handshaked
mov ecx, 4
call fcn.180022fd0
mov rcx, rdi
call fcn.180027210
test eax, eax
jne 0x180026574
lea r8, str.RTMP_Connect1
lea rdx, str._s__RTMP_connect_failed.
mov ecx, ebp
call fcn.180022fd0
mov rcx, rdi
call fcn.18002c240
xor eax, eax
jmp 0x180026576
mov eax, ebp
mov r12, qword [rsp + 0x860]
mov rsi, qword [rsp + reloc.mfc100.dll_Ordinal_2136]
mov r13, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x830
pop rdi
pop rbp
pop rbx
ret