Function at 0x140078820
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
cmp byte [rcx + 0x1cc], 0
mov rsi, r8
mov r14, rdx
mov rbx, rcx
jne 0x14007891d
cmp byte [rcx + 0xaf4], 0
jne 0x14007891d
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, [0x1400afd18]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x14007891d
xor edx, edx
lea rcx, [rsi + 0xf]
lea r9, [rsp + 0x60]
lea r8d, [rdx + 0xa]
call fcn.14007f790
test eax, eax
jne 0x1400788bb
mov rax, qword [rbx + 0x728]
mov rdx, qword [rsp + 0x60]
test rax, rax
je 0x1400788a0
cmp rdx, rax
jg 0x1400788ca
mov rcx, rbx
mov qword [rbx + 0xf0], rdx
mov qword [rbx + 0xf8], rdx
call fcn.14007b7b0
jmp 0x1400791da
cmp eax, 1
jne 0x140078904
cmp qword [rbx + 0x728], 0
je 0x1400788e3
lea rdx, [0x1400b1020]
mov rcx, rbx
call fcn.14006c7e0
mov eax, 0x3f
jmp 0x1400791dc
mov edx, 2
mov rcx, r14
call fcn.14006d360
lea rdx, [0x1400b1040]
mov rcx, rbx
call fcn.14006c940
jmp 0x1400791da
lea rdx, [0x1400b1068]
mov rcx, rbx
call fcn.14006c7e0
mov eax, 8
jmp 0x1400791dc
mov r8d, reloc.WS2_32.dll_listen
lea rcx, [0x1400b0ac0]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x14007896c
mov rcx, rsi
call fcn.140077650
mov rdi, rax
test rax, rax
je 0x140079134
cmp byte [rax], 0
je 0x140079096
mov rcx, qword [rbx + 0x1318]
call qword [fcn.1400ab4b6]
mov qword [rbx + 0x1318], rdi
jmp 0x1400791da
cmp dword [r14 + 0x1b8], 0xa
jne 0x140078a39
cmp byte [r14 + 0x3a4], 0
je 0x140078a39
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x1400afde8]
mov rcx, rsi
call fcn.140070b30
test eax, eax
je 0x140078a39
movzx eax, byte [rsi + 0x11]
lea rdi, [rsi + 0x11]
test al, al
je 0x1400789c8
movzx ecx, al
call fcn.1400990f0
test eax, eax
je 0x1400789c8
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400789b1
mov edx, reloc.WS2_32.dll_listen
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x1400789fd
lea edx, [rax + 0xa]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x1400789fd
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
sub rbp, rdi
cmp rbp, 0xa
jb 0x140078a39
nop word [rax + rax]
mov r8d, 0xa
lea rdx, [0x1400b1088]
mov rcx, rdi
call fcn.140070b30
test eax, eax
jne 0x140078cc2
dec rbp
inc rdi
cmp rbp, 0xa
jae 0x140078a10
cmp dword [r14 + 0x1b8], 0xb
jne 0x140078b09
cmp byte [r14 + 0x3a4], 0
je 0x140078b09
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x1400afde8]
mov rcx, rsi
call fcn.140070b30
test eax, eax
je 0x140078b09
movzx eax, byte [rsi + 0x11]
lea rdi, [rsi + 0x11]
test al, al
je 0x140078a97
nop
movzx ecx, al
call fcn.1400990f0
test eax, eax
je 0x140078a97
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140078a80
mov edx, reloc.WS2_32.dll_listen
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x140078acc
lea edx, [rax + 0xa]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x140078acc
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
sub rbp, rdi
cmp rbp, 5
jb 0x140078b09
nop word [rax + rax]
mov r8d, 5
lea rdx, [0x1400afd5c]
mov rcx, rdi
call fcn.140070b30
test eax, eax
jne 0x140078ce0
dec rbp
inc rdi
cmp rbp, 5
jae 0x140078ae0
cmp dword [r14 + 0x1b8], 0xa
jne 0x140078bc9
mov r8d, listen
lea rdx, [0x1400afd68]
mov rcx, rsi
call fcn.140070b30
test eax, eax
je 0x140078bc9
movzx eax, byte [rsi + 0xb]
lea rdi, [rsi + 0xb]
test al, al
je 0x140078b57
movzx ecx, al
call fcn.1400990f0
test eax, eax
je 0x140078b57
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140078b40
mov edx, reloc.WS2_32.dll_listen
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x140078b8c
lea edx, [rax + 0xa]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x140078b8c
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
sub rbp, rdi
cmp rbp, 0xa
jb 0x140078bc9
nop word [rax + rax]
mov r8d, 0xa
lea rdx, [0x1400b1088]
mov rcx, rdi
call fcn.140070b30
test eax, eax
jne 0x140078d01
dec rbp
inc rdi
cmp rbp, 0xa
jae 0x140078ba0
mov r8d, listen
lea rdx, [0x1400afd68]
mov rcx, rsi
call fcn.140070b30
test eax, eax
je 0x140078c79
movzx eax, byte [rsi + 0xb]
lea rdi, [rsi + 0xb]
test al, al
je 0x140078c09
movzx ecx, al
call fcn.1400990f0
test eax, eax
je 0x140078c09
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140078bf2
mov edx, reloc.WS2_32.dll_listen
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x140078c3e
lea edx, [rax + 0xa]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
test rax, rax
jne 0x140078c3e
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
mov rbp, rax
sub rbp, rdi
cmp rbp, 5
jb 0x140078c79
nop word [rax + rax]
mov r8d, 5
lea rdx, [0x1400afd5c]
mov rcx, rdi
call fcn.140070b30
test eax, eax
jne 0x140078d1f
dec rbp
inc rdi
cmp rbp, 5
jae 0x140078c50
cmp byte [rbx + 0x1cc], 0
jne 0x140078d69
mov r8d, reloc.WS2_32.dll_select
lea rcx, [0x1400afd78]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078d31
lea rdx, [rsi + 0x12]
mov r8d, 1
mov rcx, rbx
call fcn.140070ff0
test eax, eax
je 0x1400791da
jmp 0x1400791dc
xor edx, edx
mov rcx, r14
call fcn.14006d360
lea rdx, [0x1400b1098]
mov rcx, rbx
call fcn.14006c940
jmp 0x1400791da
mov edx, 1
mov rcx, r14
call fcn.14006d360
lea rdx, [0x1400b10c8]
mov rcx, rbx
call fcn.14006c940
jmp 0x1400791da
xor edx, edx
mov rcx, r14
call fcn.14006d360
lea rdx, [0x1400b10f0]
mov rcx, rbx
call fcn.14006c940
jmp 0x1400791da
mov edx, 2
mov rcx, r14
call fcn.14006d360
jmp 0x1400791da
cmp byte [rbx + 0x1cc], 0
jne 0x140078d69
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, [0x1400b1118]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078d69
cmp qword [rbx + 0x7b0], 0
je 0x140078d69
lea rdx, [rsi + 0x11]
xor r8d, r8d
jmp 0x140078cad
mov r8d, listen
lea rcx, [0x1400b1130]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078dd8
lea rcx, [rsi + 0xc]
mov qword [rsp + 0x60], 0
call fcn.14007fc10
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140078dc2
lea r9, [rsp + 0x60]
xor edx, edx
lea r8d, [rax + 0xb]
lea rcx, [rsi + 0xc]
call fcn.14007f790
mov rdi, qword [rsp + 0x60]
mov qword [rbx + 0x1328], rdi
jmp 0x1400791da
xor ecx, ecx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
sub rdi, rax
mov qword [rbx + 0x1328], rdi
jmp 0x1400791da
cmp byte [rbx + 0x1cc], 0
jne 0x140078e85
mov r8d, reloc.WS2_32.dll_ntohl
lea rcx, [0x1400b1140]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078e85
movzx eax, byte [rsi + 0xe]
lea rdi, [rsi + 0xe]
test al, al
je 0x140078e2c
nop
movzx ecx, al
call fcn.140099070
test eax, eax
jne 0x140078e2c
cmp byte [rdi], 0x2a
je 0x140078e2c
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140078e10
movzx ecx, byte [rdi]
call fcn.140099070
test eax, eax
je 0x140078e75
xor edx, edx
lea r9, [rbx + 0x158]
mov rcx, rdi
lea r8d, [rdx + 0xa]
call fcn.14007f790
test eax, eax
jne 0x1400791da
mov rax, qword [rbx + 0x158]
cmp qword [rbx + 0x1168], rax
jne 0x1400791da
mov byte [rbx + 0x1c9], 1
jmp 0x1400791da
mov qword [rbx + 0x1168], 0
jmp 0x1400791da
cmp qword [rbx + 0xb38], 0
je 0x140078f30
cmp byte [rbx + 0x128f], 0
je 0x140078f30
mov r8d, listen
lea rcx, [0x1400add88]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078f30
mov edx, 2
mov rcx, rbx
mov r8d, edx
call fcn.140071240
mov r8, qword [rbx + 0x1268]
test r8, r8
jne 0x140078edc
mov r8, qword [r14 + 0xa8]
mov rax, qword [r14 + 0x3f0]
lea rdx, [rsi + 0xb]
xor r9d, r9d
mov ecx, dword [rax + 0x7c]
mov rax, qword [rbx + 0x11e8]
shr ecx, 1
and cl, 1
mov byte [rsp + 0x38], cl
mov rcx, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
mov r8b, 1
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0xb38]
call fcn.14005ed50
mov edx, 2
mov rcx, rbx
call fcn.140071280
jmp 0x1400791da
cmp byte [rbx + 0x1cc], 0
jne 0x140078f8d
mov r8d, reloc.WS2_32.dll_ntohl
lea rcx, [0x1400b1150]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078f8d
cmp dword [rbx + 0x560], 0
jne 0x140078f64
cmp byte [rbx + 0xad9], 0
je 0x140078f8d
lea rcx, [rsi + 0xe]
call fcn.14007fc10
mov qword [rbx + 0x188], rax
cmp byte [rbx + 0xad9], 0
je 0x1400791da
mov qword [rbx + 0x12f0], rax
jmp 0x1400791da
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, [0x1400afce8]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x140078fb4
mov edi, dword [rbx + 0x160]
cmp edi, 0x191
je 0x140078fdb
mov r8d, reloc.WS2_32.dll_send
lea rcx, [0x1400afd00]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x14007901d
mov edi, dword [rbx + 0x160]
cmp edi, 0x197
jne 0x14007901d
mov rcx, rsi
call fcn.140077650
mov rsi, rax
test rax, rax
je 0x140079134
cmp edi, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.140079440
mov rcx, rsi
mov ebx, eax
call qword [fcn.1400ab4b6]
test ebx, ebx
je 0x1400791da
mov eax, ebx
jmp 0x1400791dc
mov r8d, reloc.WS2_32.dll_ntohs
lea rcx, [0x1400b1160]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x1400790a4
cmp dword [rbx + 0xe2c], 4
jne 0x1400791da
mov rcx, rsi
call fcn.140077650
mov rdi, rax
test rax, rax
je 0x140079134
mov r8d, 5
lea rcx, [0x1400c50b4]
mov rdx, rax
call fcn.140070c50
test eax, eax
mov byte [r14 + 0x631], 1
mov r9, rdi
lea rdx, [0x1400b1170]
setne cl
mov byte [r14 + 0x630], cl
movzx r8d, cl
mov rcx, rbx
call fcn.14006c940
mov rcx, rdi
call qword [fcn.1400ab4b6]
jmp 0x1400791da
mov eax, dword [rbx + 0x160]
sub eax, 0x12c
cmp eax, 0x63
ja 0x14007913e
mov r8d, 9
lea rcx, [0x1400b11a0]
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x14007913e
cmp qword [rbx + 0x198], 0
jne 0x14007913e
mov rcx, rsi
call fcn.140077650
test rax, rax
je 0x140079134
cmp byte [rax], 0
jne 0x1400790fb
mov rcx, rax
call qword [fcn.1400ab4b6]
jmp 0x1400791da
cmp byte [rbx + 0xae6], 0
mov qword [rbx + 0x198], rax
je 0x1400791da
mov rcx, rax
call qword [case.0x140060f79.0]
mov qword [rbx + 0x1a0], rax
test rax, rax
je 0x140079134
mov rdx, r14
mov rcx, rbx
call fcn.14007aa70
jmp 0x140078cb5
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400791dc
cmp qword [rbx + 0xb40], 0
je 0x1400791bb
mov edi, 8
lea rcx, [0x1400b11b0]
mov r8d, edi
mov rdx, rsi
call fcn.140070c50
test eax, eax
je 0x1400791bb
mov rax, qword [r14 + 0x3f0]
test byte [rax + 0x84], 1
je 0x1400791bb
cmp dword [r14 + 0x1b8], 0x14
mov eax, reloc.WS2_32.dll_recv
mov ecx, dword [r14 + 0x15c]
cmove edi, eax
call fcn.14006f3e0
mov rdx, qword [rbx + 0xb40]
lea r8, [rsi + 8]
mov word [rsp + 0x28], ax
mov r9d, edi
mov rax, qword [r14 + 0xa8]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14006fdc0
jmp 0x140078cb5
mov rax, qword [r14 + 0x3f0]
test dword [rax + 0x7c], 0x40000
je 0x1400791da
mov rdx, rsi
mov rcx, rbx
call fcn.14008ff70
test eax, eax
jne 0x1400791dc
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret