Function at 0x1400397a0
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 + 0x1c5], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x140039884
cmp byte [rcx + 0xadc], 0
jne 0x140039884
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039884
xor edx, edx
lea rcx, [rdi + 0xf]
lea r9, [rsp + 0x60]
lea r8d, [rdx + 0xa]
call fcn.140041a60
test eax, eax
jne 0x140039822
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0xe8], rax
mov qword [rbx + 0xf0], rax
jmp 0x140039ff7
cmp eax, 1
jne 0x14003986b
cmp qword [rbx + 0x710], 0
je 0x14003984a
lea rdx, str.Maximum_file_size_exceeded
mov rcx, rbx
call fcn.14002bf50
mov eax, 0x3f
jmp 0x140039ff9
mov edx, 2
mov rcx, rsi
call fcn.14002cab0
lea rdx, str.Overflow_Content_Length:_value
mov rcx, rbx
call fcn.14002c0c0
jmp 0x140039ff7
lea rdx, str.Invalid_Content_Length:_value
mov rcx, rbx
call fcn.14002bf50
mov eax, 8
jmp 0x140039ff9
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.Content_Type:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x1400398d3
mov rcx, rdi
call fcn.140038650
mov rdi, rax
test rax, rax
je 0x140039eed
cmp byte [rax], 0
je 0x140039e47
mov rcx, qword [rbx + 0x13a0]
call qword [0x14008c008]
mov qword [rbx + 0x13a0], rdi
jmp 0x140039ff7
cmp byte [rsi + 0x813], 0xa
jne 0x14003992c
cmp byte [rsi + 0x3a4], 0
je 0x14003992c
lea r9, str.keep_alive
mov qword [rsp + 0x20], 0xa
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.140038580
test al, al
je 0x14003992c
xor edx, edx
mov rcx, rsi
call fcn.14002cab0
lea rdx, str.HTTP_1.0_proxy_connection_set_to_keep_alive
mov rcx, rbx
call fcn.14002c0c0
jmp 0x140039ff7
cmp byte [rsi + 0x813], 0xb
jne 0x140039988
cmp byte [rsi + 0x3a4], 0
je 0x140039988
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.140038580
test al, al
je 0x140039988
mov edx, 1
mov rcx, rsi
call fcn.14002cab0
lea rdx, str.HTTP_1.1_proxy_connection_set_close
mov rcx, rbx
call fcn.14002c0c0
jmp 0x140039ff7
cmp byte [rsi + 0x813], 0xa
jne 0x1400399d8
lea r9, str.keep_alive
mov qword [rsp + 0x20], 0xa
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rdi
call fcn.140038580
test al, al
je 0x1400399d8
xor edx, edx
mov rcx, rsi
call fcn.14002cab0
lea rdx, str.HTTP_1.0_connection_set_to_keep_alive
mov rcx, rbx
call fcn.14002c0c0
jmp 0x140039ff7
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rdi
call fcn.140038580
test al, al
je 0x140039a13
mov edx, 2
mov rcx, rsi
call fcn.14002cab0
jmp 0x140039ff7
cmp byte [rbx + 0x1c5], 0
jne 0x140039abe
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039a76
lea rdx, [rdi + 0x12]
mov r8d, 1
mov rcx, rbx
call fcn.140031780
test eax, eax
jne 0x140039ff9
cmp byte [rbx + 0x1c6], al
jne 0x140039ff7
lea edx, [rax + 1]
mov rcx, rsi
call fcn.14002cab0
mov byte [rbx + 0x1c7], 1
jmp 0x140039ff7
cmp byte [rbx + 0x1c5], 0
jne 0x140039abe
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Content_Encoding:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039abe
cmp qword [rbx + 0x798], 0
je 0x140039abe
lea rdx, [rdi + 0x11]
xor r8d, r8d
mov rcx, rbx
call fcn.140031780
test eax, eax
je 0x140039ff7
jmp 0x140039ff9
mov r8d, recv
lea rdx, str.Retry_After:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039b2e
xor ecx, ecx
lea rsi, [rdi + 0xc]
mov qword [rsp + 0x60], rcx
mov rcx, rsi
call fcn.140041be0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140039b17
lea r9, [rsp + 0x60]
xor edx, edx
lea r8d, [rax + 0xb]
mov rcx, rsi
call fcn.140041a60
mov rdi, qword [rsp + 0x60]
mov qword [rbx + 0x13b0], rdi
jmp 0x140039ff7
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub rdi, rax
mov qword [rbx + 0x13b0], rdi
jmp 0x140039ff7
cmp byte [rbx + 0x1c5], 0
jne 0x140039bdb
mov r8d, recv
lea rdx, str.Content_Range:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039bdb
movzx eax, byte [rdi + 0xe]
add rdi, 0xe
test al, al
je 0x140039b8a
movzx ecx, al
cmp cl, 0x30
jl 0x140039b74
movzx eax, cl
cmp cl, 0x39
jle 0x140039b8a
movzx eax, cl
cmp cl, 0x2a
je 0x140039b8a
movzx eax, byte [rdi + 1]
inc rdi
movzx ecx, al
test al, al
jne 0x140039b67
sub al, 0x30
cmp al, 9
ja 0x140039bcd
xor edx, edx
lea r9, [rbx + 0x150]
mov rcx, rdi
lea r8d, [rdx + 0xa]
call fcn.140041a60
test eax, eax
jne 0x140039ff7
mov rax, qword [rbx + 0x150]
cmp qword [rbx + 0x1168], rax
jne 0x140039ff7
mov byte [rbx + 0x1c2], 1
jmp 0x140039ff7
xor ecx, ecx
mov qword [rbx + 0x1168], rcx
jmp 0x140039ff7
cmp qword [rbx + 0xaf8], 0
je 0x140039ce2
cmp byte [rbx + 0x130e], 0
je 0x140039ce2
mov r8d, recv
lea rdx, str.Set_Cookie:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039ce2
mov r14, qword [rbx + 0x12c8]
test r14, r14
jne 0x140039c26
mov r14, qword [rsi + 0x98]
mov rax, qword [rsi + 0x3e8]
test byte [rax + 0x84], 2
jne 0x140039c84
mov rdx, r14
lea rcx, str.localhost
call fcn.140031240
test eax, eax
jne 0x140039c84
lea rdx, str.127.0.0.1
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140039c84
xor ecx, ecx
lea rdx, str._::1_
nop word [rax + rax]
movzx eax, byte [r14 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140039cdd
cmp rcx, 6
jne 0x140039c70
mov sil, 1
mov edx, 2
mov rcx, rbx
mov r8d, edx
call fcn.140031a00
mov rax, qword [rbx + 0x11d0]
lea rcx, [rdi + 0xb]
mov rdx, qword [rbx + 0xaf8]
xor r9d, r9d
mov byte [rsp + 0x38], sil
mov r8b, 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14001e980
mov edx, 2
mov rcx, rbx
call fcn.140031a40
jmp 0x140039ff7
xor sil, sil
jmp 0x140039c87
cmp byte [rbx + 0x1c5], 0
jne 0x140039d3f
mov r8d, recv
lea rdx, str.Last_Modified:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039d3f
cmp byte [rbx + 0x568], 0
jne 0x140039d16
cmp byte [rbx + 0xac0], 0
je 0x140039d3f
lea rcx, [rdi + 0xe]
call fcn.140041be0
mov qword [rbx + 0x180], rax
cmp byte [rbx + 0xac0], 0
je 0x140039ff7
mov qword [rbx + 0x1378], rax
jmp 0x140039ff7
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039d66
mov ebp, dword [rbx + 0x158]
cmp ebp, 0x191
je 0x140039d8d
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039dcf
mov ebp, dword [rbx + 0x158]
cmp ebp, 0x197
jne 0x140039dcf
mov rcx, rdi
call fcn.140038650
mov rdi, rax
test rax, rax
je 0x140039eed
cmp ebp, 0x197
mov r8, rax
mov rcx, rbx
sete dl
call fcn.14003a280
mov rcx, rdi
mov ebx, eax
call qword [0x14008c008]
test ebx, ebx
je 0x140039ff7
mov eax, ebx
jmp 0x140039ff9
mov r14d, reloc.WS2_32.dll_recv
lea rdx, str.Persistent_Auth:
mov r8d, r14d
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039e55
cmp dword [rbx + 0xdfc], 4
jne 0x140039ff7
mov rcx, rdi
call fcn.140038650
mov rdi, rax
test rax, rax
je 0x140039eed
lea r8d, [r14 - 0xb]
mov rcx, rax
lea rdx, str.false
call fcn.140031420
test eax, eax
mov byte [rsi + 0x629], 1
mov r9, rdi
lea rdx, str.Negotiate:_noauthpersist_____d__header_part:__s
setne cl
mov byte [rsi + 0x628], cl
movzx r8d, cl
mov rcx, rbx
call fcn.14002c0c0
mov rcx, rdi
call qword [0x14008c008]
jmp 0x140039ff7
mov eax, dword [rbx + 0x158]
sub eax, 0x12c
cmp eax, 0x63
ja 0x140039ef7
mov r8d, 9
lea rdx, str.Location:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039ef7
cmp qword [rbx + 0x190], 0
jne 0x140039ef7
mov rcx, rdi
call fcn.140038650
test rax, rax
je 0x140039eed
cmp byte [rax], 0
jne 0x140039eac
mov rcx, rax
call qword [0x14008c008]
jmp 0x140039ff7
cmp byte [rbx + 0xace], 0
mov qword [rbx + 0x190], rax
je 0x140039ff7
mov rcx, rax
call qword [case.0x140020c69.0]
mov qword [rbx + 0x198], rax
test rax, rax
je 0x140039eed
mov rdx, rsi
mov rcx, rbx
call fcn.14003bae0
test eax, eax
je 0x140039ff7
jmp 0x140039ff9
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140039ff9
cmp qword [rbx + 0xb00], 0
je 0x140039f5d
mov r8d, reloc.WLDAP32.dll_Ordinal_26
lea rdx, str.Strict_Transport_Security:
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039f5d
mov rax, qword [rsi + 0x3e8]
test byte [rax + 0x8c], 1
je 0x140039f5d
mov rdx, qword [rbx + 0x11a8]
lea r8, [rdi + 0x1a]
mov rcx, qword [rbx + 0xb00]
call fcn.140030af0
test eax, eax
je 0x140039ff7
lea rdx, str.Illegal_STS_header_skipped
mov rcx, rbx
call fcn.14002c0c0
jmp 0x140039ff7
cmp qword [rbx + 0xb08], 0
je 0x140039fd5
mov ebp, 8
lea rdx, str.Alt_Svc:
mov r8d, ebp
mov rcx, rdi
call fcn.140031420
test eax, eax
je 0x140039fd5
mov rax, qword [rsi + 0x3e8]
test byte [rax + 0x8c], 1
je 0x140039fd5
cmp byte [rsi + 0x813], 0x14
mov ecx, dword [rsi + 0x800]
cmove ebp, r14d
call fcn.14002ed70
mov rdx, qword [rbx + 0xb08]
lea r8, [rdi + 8]
mov word [rsp + 0x28], ax
mov r9d, ebp
mov rax, qword [rsi + 0x98]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14002f7e0
test eax, eax
je 0x140039ff7
jmp 0x140039ff9
mov rax, qword [rsi + 0x3e8]
test dword [rax + 0x84], 0x40000
je 0x140039ff7
mov rdx, rdi
mov rcx, rbx
call fcn.1400529a0
test eax, eax
jne 0x140039ff9
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret