Function at 0x43eb20
Capabilities:
Check http status code

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov r14, qword [rcx]
mov r13, rcx
mov dword [rsp + 0x128], edx
mov qword [rsp + 0x130], r8
mov dword [rsp + 0x98], r9d
mov dword [rsp + 0xbc], 0
mov eax, dword [r14 + 0x320]
mov esi, eax
test eax, eax
mov eax, 0x36ee80
cmovne eax, esi
mov dword [rsp + 0x54], eax
movsxd rax, edx
lea rsi, [rcx + rax*8]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x78], rax
mov eax, dword [rax + 0x5b0]
mov qword [rsp + 0x90], rsi
mov rsi, qword [rsi + 0x1a8]
cmp eax, 2
mov qword [rsp + 0x48], rsi
je 0x43f270
lea rsi, [r14 + 0x7d8]
mov byte [rcx + 0x27e], 0
mov byte [rsp + 0x8f], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rsi
lea rsi, [rsp + 0xc0]
mov qword [rsp + 0x58], rsi
lea rsi, [r14 + 0x128]
mov qword [rsp + 0xa0], rsi
lea rsi, [rsp + 0xbc]
mov qword [rsp + 0xa8], rsi
lea rsi, [rsp + 0xc8]
mov qword [rsp + 0x80], rsi
test eax, eax
je 0x43f2e0
mov rax, qword [rsp + 0x68]
mov byte [rsp + 0x8e], 0
xor r12d, r12d
mov edi, 1
mov qword [rsp + 0x40], 0
mov rbp, rax
mov r15, rax
jmp 0x43ecff
mov rax, qword [rsp + 0x58]
mov r9d, 0x4000
sub r9, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov r8, rbp
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.00416c20
cmp eax, 0x51
je 0x43eda0
test eax, eax
jne 0x43ed90
mov rsi, qword [rsp + 0xc0]
test rsi, rsi
mov qword [rsp + 0x70], rsi
jle 0x43eee0
cmp edi, 1
jle 0x43ef30
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x43f151
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x40], 0
sub rsi, rbx
mov rbx, qword [rsp + 0x68]
test rsi, rsi
mov qword [rsp + 0x60], rsi
cmovle edi, eax
mov rbp, rbx
xor ebx, ebx
nop dword [rax]
mov rcx, r13
call fcn.00425020
test eax, eax
jne 0x43ed67
cmp qword [rsp + 0x40], 0x3fff
ja 0x43edb1
test ebx, ebx
jne 0x43edb1
test edi, edi
je 0x43edb1
call fcn.00420f10
mov rdx, qword [r13 + 0x194]
mov rcx, rax
call fcn.00420f50
mov r9d, dword [rsp + 0x54]
sub r9d, eax
test r9d, r9d
jle 0x43f125
mov rcx, qword [rsp + 0x48]
cmp r9d, 0x3e8
mov eax, 0x3e8
mov r8, 0xffffffffffffffff
cmovg r9d, eax
mov rdx, r8
call fcn.00421010
cmp eax, 0xffffffff
je 0x43ed72
test eax, eax
jne 0x43ec40
xor ebx, ebx
mov rcx, r13
call fcn.00425020
test eax, eax
je 0x43ece0
mov r12d, 0x2a
jmp 0x43f13a
lea rdx, str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov rcx, r14
mov ebx, 1
call fcn.00416f80
jmp 0x43ecd0
xor edi, edi
xor ebx, ebx
jmp 0x43ed57
xor ebx, ebx
cmp qword [rsp + 0x40], 0x3fff
jbe 0x43ecef
test ebx, ebx
jne 0x43ee5e
cmp dword [r14 + 0x89b4], 0xc8
je 0x43ee70
mov rcx, r13
call fcn.00427130
test eax, eax
jne 0x43f0cc
cmp byte [r13 + 0x268], 0
je 0x43ee70
cmp qword [r14 + 0x1d0], 0
jne 0x43f602
mov byte [rsp + 0x8e], 1
mov r8d, dword [r14 + 0x128]
cmp r8d, 0xc8
je 0x43f4c3
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r14
call fcn.00416f80
cmp byte [rsp + 0x8e], 0
jne 0x43f647
mov rcx, qword [r14 + 0x1d0]
test rcx, rcx
je 0x43ee4f
mov rax, qword [0x00474c20]
call qword [rax]
mov qword [r14 + 0x1d0], 0
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x5b0], 0
mov r12d, 0x38
jmp 0x43f13a
cmp byte [rsp + 0x8e], 0
jne 0x43ede8
cmp qword [r14 + 0x1d0], 0
je 0x43edfe
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x5b0]
cmp eax, 2
jne 0x43ec05
mov rsi, qword [rsp + 0x78]
lea rdx, str.TUNNEL_STATE_switched_to:__d_n
xor r8d, r8d
mov rcx, r14
mov dword [rsi + 0x5b0], 0
call fcn.00416ed0
cmp qword [r14 + 0x1d0], 0
je 0x43f758
mov eax, dword [rsi + 0x5b0]
jmp 0x43ec05
mov edx, dword [r14 + 0x240]
test edx, edx
je 0x43ef10
mov eax, dword [r14 + 0x88d8]
test eax, eax
je 0x43ef10
mov byte [r13 + 0x27e], 1
xor edi, edi
xor ebx, ebx
jmp 0x43ecd0
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, r14
xor edi, edi
mov ebx, 1
call fcn.00416f80
jmp 0x43ecd0
mov rbx, rbp
xor esi, esi
mov dword [rsp + 0x9c], edi
add rbx, 1
mov rdi, rsi
mov qword [rsp + 0x120], r13
jmp 0x43ef66
add rdi, 1
add rbx, 1
cmp qword [rsp + 0xc0], rdi
jle 0x43f1f3
add r12d, 1
cmp byte [rbx - 1], 0xa
mov ebp, edi
mov rsi, rbx
jne 0x43ef50
cmp byte [r14 + 0x498], 0
movsxd r13, r12d
jne 0x43f100
cmp byte [r14 + 0x48c], 1
mov rcx, qword [rsp + 0x120]
mov r9, r13
mov r8, r15
sbb edx, edx
add edx, 3
call fcn.004171c0
add dword [r14 + 0x89c4], r12d
add dword [r14 + 0xc0], r12d
test eax, eax
jne 0x43f0cc
movzx eax, byte [r15]
cmp al, 0xa
je 0x43f29d
cmp al, 0xd
je 0x43f29d
lea rbp, [r15 + r13]
lea rcx, str.WWW_Authenticate:
mov r8d, 0x11
mov rdx, r15
movzx r12d, byte [rbp]
mov byte [rbp], 0
call fcn.0043c970
test eax, eax
je 0x43f005
mov edx, dword [r14 + 0x128]
cmp edx, 0x191
je 0x43f070
lea rcx, str.Proxy_authenticate:
mov r8d, 0x13
mov rdx, r15
call fcn.0043c970
test eax, eax
je 0x43f02d
mov edx, dword [r14 + 0x128]
cmp edx, 0x197
je 0x43f070
lea rcx, str.Content_Length:
mov r8d, 0xf
mov rdx, r15
call fcn.0043c970
test eax, eax
je 0x43f0d1
lea rcx, [r15 + 0xf]
mov r8d, 0xa
xor edx, edx
call fcn.0045c0e0
mov qword [rsp + 0x60], rax
mov byte [rbp], r12b
mov r15, rbx
xor r12d, r12d
jmp 0x43ef50
mov rcx, r15
mov dword [rsp + 0x88], edx
call fcn.00427040
test rax, rax
mov r15, rax
mov edx, dword [rsp + 0x88]
je 0x43f521
cmp edx, 0x197
mov rcx, qword [rsp + 0x120]
mov r8, r15
sete dl
movzx edx, dl
call fcn.00427610
mov dword [rsp + 0x88], eax
mov rax, qword [0x00474c20]
mov rcx, r15
call qword [rax]
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x43f060
mov r12d, eax
jmp 0x43f13a
lea r8, str.close
lea rdx, str.Connection:
mov rcx, r15
call fcn.00427b60
test al, al
je 0x43f1b0
mov byte [rsp + 0x8e], 1
jmp 0x43f060
mov rax, qword [rsp + 0x120]
mov r9, r13
mov r8, r15
mov edx, 1
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.00416d90
jmp 0x43ef86
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, r14
mov r12d, 0x38
call fcn.00416f80
mov eax, r12d
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x70]
mov rcx, r13
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0xc8], 0
call fcn.00445730
cmp eax, 0xffffffff
je 0x43f278
mov r8, qword [rsp + 0xc8]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
mov rcx, r14
call fcn.00416ed0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], 0
xor ebx, ebx
mov rbp, rax
jmp 0x43ecd0
lea r8, str.chunked
lea rdx, str.Transfer_Encoding:
mov rcx, r15
call fcn.00427b60
test al, al
je 0x43f216
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, r14
call fcn.00416ed0
mov rcx, qword [rsp + 0x120]
call fcn.00445710
mov byte [rsp + 0x8f], 1
jmp 0x43f060
mov rbp, rsi
mov edi, dword [rsp + 0x9c]
mov rsi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x120]
add qword [rsp + 0x40], rsi
xor ebx, ebx
jmp 0x43ecd0
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, r15
call fcn.00427b60
test al, al
jne 0x43f0ef
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xa8]
lea rdx, str.HTTP_1._d__d
mov rcx, r15
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x43f060
mov eax, dword [r14 + 0x128]
mov dword [r14 + 0x89b4], eax
jmp 0x43f060
xor r12d, r12d
jmp 0x43f13a
lea rdx, str.chunk_reading_DONE_n
mov rcx, r14
xor edi, edi
call fcn.00416ed0
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x5b0], 2
jmp 0x43f197
cmp dword [r14 + 0x128], 0x197
mov rsi, rdi
mov r13, qword [rsp + 0x120]
je 0x43f52c
xor edi, edi
cmp dword [r14 + 0x89b4], 0xc8
je 0x43f5d5
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x5b0], 2
jmp 0x43f197
movzx ebp, word [rsp + 0x98]
mov r8, qword [rsp + 0x130]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov rcx, r14
mov r9d, ebp
call fcn.00416ed0
mov rcx, qword [r14 + 0x1d0]
test rcx, rcx
je 0x43f322
mov rax, qword [0x00474c20]
call qword [rax]
mov qword [r14 + 0x1d0], 0
call fcn.00427770
test rax, rax
mov rbx, rax
mov r12d, 0x1b
je 0x43f13a
mov rdx, qword [rsp + 0x130]
lea rcx, str._s:_hu
mov r8d, ebp
call fcn.00415150
test rax, rax
mov r15, rax
je 0x43f671
lea rdx, str.CONNECT
mov r9d, 1
mov r8, rax
mov rcx, r13
call fcn.00427340
mov rsi, qword [0x00474c20]
mov edi, eax
mov rcx, r15
call qword [rsi]
test edi, edi
jne 0x43f664
cmp dword [r13 + 0x188], 1
lea rax, [0x0046f4f4]
lea rdi, [0x0046f4f0]
lea r9, [0x0046f4fc]
mov r8, qword [rsp + 0x130]
lea rcx, str._s_s_s:_hu
mov rdx, r9
cmove rax, rdi
cmp byte [r13 + 0x26e], 0
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x40], rax
lea rax, [0x0046f4f8]
cmovne r9, rax
lea rax, [0x0046f4fa]
cmovne rdx, rax
call fcn.00415150
test rax, rax
mov rbp, rax
je 0x43f6a2
lea rdx, str.Host:
mov rcx, r14
lea r15, [0x0046f4fc]
call fcn.00426fd0
test rax, rax
je 0x43f682
lea rdx, str.Proxy_Connection:
mov rcx, r14
lea r12, [0x0046f4fc]
call fcn.00426fd0
test rax, rax
lea rax, str.Proxy_Connection:_Keep_Alive_r_n
lea rdx, str.User_Agent:
mov rcx, r14
cmovne rax, r12
mov rdi, rax
call fcn.00426fd0
test rax, rax
je 0x43f7ab
mov rax, qword [r13 + 0x2c0]
lea rdx, [0x0046f4fc]
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rdi
mov r8, rbp
mov qword [rsp + 0x20], r15
mov rcx, rbx
test rax, rax
cmove rax, rdx
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov qword [rsp + 0x28], rax
call fcn.00427ad0
cmp byte [r15], 0
mov r12d, eax
je 0x43f4a1
mov rcx, r15
call qword [rsi]
mov rcx, rbp
call qword [rsi]
test r12d, r12d
je 0x43f6e6
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, r14
call fcn.00416f80
jmp 0x43f13a
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x5b0], 2
mov rcx, qword [r13 + 0x2c0]
test rcx, rcx
je 0x43f4e7
mov rax, qword [0x00474c20]
call qword [rax]
lea rdx, str.Proxy_replied_OK_to_CONNECT_request_n
mov qword [r13 + 0x2c0], 0
mov rcx, r14
mov byte [r14 + 0x88dc], 1
xor r12d, r12d
call fcn.00416ed0
mov byte [r14 + 0x1c5], 0
mov byte [r13 + 0x277], 0
jmp 0x43f13a
mov r12d, 0x1b
jmp 0x43f13a
cmp byte [r14 + 0x88e0], 0
jne 0x43f2b9
cmp qword [rsp + 0x60], 0
jne 0x43f6ac
xor edi, edi
cmp byte [rsp + 0x8f], 0
je 0x43f2cc
mov r8, qword [rsp + 0xc0]
lea rdx, str._zd_bytes_of_chunk_left_n
mov byte [r14 + 0x1c5], 1
mov rcx, r14
sub r8, rsi
call fcn.00416ed0
cmp byte [r15 + 1], 0xa
je 0x43f79f
mov r8, qword [rsp + 0xc0]
mov r9, qword [rsp + 0x58]
movsxd rbp, ebp
lea rdx, [r15 + 1]
mov rcx, r13
sub r8, rbp
call fcn.00445730
cmp eax, 0xffffffff
je 0x43f780
mov r8, qword [rsp + 0xc0]
lea rdx, str.Read__zd_bytes_of_chunk__continue_n
mov rcx, r14
mov edi, 2
call fcn.00416ed0
mov qword [rsp + 0x60], 0
jmp 0x43f2cc
lea eax, [rbp + 1]
mov r8, qword [rsp + 0xc0]
cdqe
cmp rax, r8
je 0x43f2cc
lea rdx, str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
sub r8, rax
mov rcx, r14
call fcn.00416f80
jmp 0x43f2cc
mov rsi, qword [rsp + 0x90]
mov rcx, r13
mov rdx, qword [rsi + 0x1a8]
call fcn.00415a60
mov qword [rsi + 0x1a8], 0xffffffffffffffff
mov r8d, dword [r14 + 0x128]
cmp r8d, 0xc8
je 0x43f4c3
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r14
call fcn.00416f80
mov rcx, qword [r14 + 0x1d0]
test rcx, rcx
je 0x43ee4f
mov byte [r13 + 0x27e], 1
jmp 0x43ee3b
mov rcx, rbx
mov r12d, edi
call qword [rsi]
jmp 0x43f13a
mov rax, qword [0x00474c20]
mov rcx, rbx
call qword [rax]
jmp 0x43f13a
lea rcx, str.Host:__s_r_n
mov rdx, rbp
call fcn.00415150
test rax, rax
mov r15, rax
jne 0x43f414
mov rcx, rbp
call qword [rsi]
mov rcx, rbx
call qword [rsi]
jmp 0x43f13a
mov rdi, qword [rsp + 0x60]
lea rdx, str.Ignore__lld_bytes_of_response_body_n
mov rcx, r14
mov r8, rdi
call fcn.00416ed0
sub rsi, qword [rsp + 0xc0]
mov rax, rdi
xor edi, edi
add rax, rsi
test rax, rax
mov qword [rsp + 0x60], rax
setg dil
add edi, edi
jmp 0x43f2cc
mov rdx, rbx
mov rcx, r13
call fcn.00427cd0
test eax, eax
mov r12d, eax
jne 0x43f4af
lea rdx, [0x0046f5ad]
mov rcx, rbx
call fcn.00427ad0
test eax, eax
mov r12d, eax
jne 0x43f4af
mov eax, dword [rsp + 0x128]
lea r8, [r14 + 0x89c8]
xor r9d, r9d
mov rdx, r13
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.00427790
test eax, eax
mov r12d, eax
jne 0x43f4af
mov rax, qword [rsp + 0x78]
xor r12d, r12d
mov dword [rax + 0x5b0], 1
jmp 0x43f13a
mov r8d, dword [r14 + 0x128]
cmp r8d, 0xc8
je 0x43f4c3
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, r14
call fcn.00416f80
jmp 0x43ee2f
lea rdx, str.chunk_reading_DONE_n
mov rcx, r14
xor edi, edi
call fcn.00416ed0
mov qword [rsp + 0x60], 0
jmp 0x43f2cc
add r15, 1
add ebp, 1
jmp 0x43f583
cmp qword [r14 + 0x590], 0
je 0x43f453
mov r12, qword [r13 + 0x2c8]
jmp 0x43f453