Function at 0x140042690
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x658], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x14004278d
cmp dword [rcx + 0x1048], 0
jne 0x14004278d
lea rcx, str.Content_Length:
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x14004278d
xor edx, edx
lea rcx, [rdi + 0xf]
lea r9, [rsp + 0x50]
lea r8d, [rdx + 0xa]
call fcn.14004e1c0
test eax, eax
jne 0x140042746
mov rax, qword [rbx + 0xc10]
mov rdx, qword [rsp + 0x50]
test rax, rax
je 0x14004272b
cmp rdx, rax
jle 0x14004272b
lea rdx, str.Maximum_file_size_exceeded
mov rcx, rbx
call fcn.140019080
mov eax, 0x3f
jmp 0x140042dd2
mov rcx, rbx
mov qword [rbx + 0xe8], rdx
mov qword [rbx + 0xf0], rdx
call fcn.140029350
jmp 0x140042dd0
cmp eax, 1
jne 0x140042774
cmp qword [rbx + 0xc10], 0
jne 0x140042712
lea edx, [rax + 1]
mov rcx, rsi
call fcn.140022110
lea rdx, str.Overflow_Content_Length:_value__n
mov rcx, rbx
call fcn.140018f20
jmp 0x140042dd0
lea rdx, str.Invalid_Content_Length:_value
mov rcx, rbx
call fcn.140019080
mov eax, 8
jmp 0x140042dd2
lea rcx, str.Content_Type:
mov r8d, reloc.WS2_32.dll_listen
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x1400427ec
mov rcx, rdi
call fcn.14003f040
mov rdi, rax
test rax, rax
jne 0x1400427c0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140042dd2
cmp byte [rax], 0
jne 0x1400427d3
mov rcx, rax
call qword [sub.MSVCR120.dll_free]
jmp 0x140042dd0
mov rcx, qword [rbx + 0x18d8]
call qword [sub.MSVCR120.dll_free]
mov qword [rbx + 0x18d8], rdi
jmp 0x140042dd0
cmp dword [rsi + 0x488], 0xa
jne 0x140042836
cmp dword [rsi + 0x690], 0
je 0x140042836
lea r8, str.keep_alive
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.14003ff30
test eax, eax
je 0x140042836
xor edx, edx
mov rcx, rsi
call fcn.140022110
lea rdx, str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
mov rcx, rbx
call fcn.140018f20
jmp 0x140042dd0
cmp dword [rsi + 0x488], 0xb
jne 0x140042883
cmp dword [rsi + 0x690], 0
je 0x140042883
lea r8, str.close
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.14003ff30
test eax, eax
je 0x140042883
mov edx, 1
mov rcx, rsi
call fcn.140022110
lea rdx, str.HTTP_1.1_proxy_connection_set_close__n
mov rcx, rbx
call fcn.140018f20
jmp 0x140042dd0
cmp dword [rsi + 0x488], 0xa
jne 0x1400428c4
lea r8, str.keep_alive
lea rdx, str.Connection:
mov rcx, rdi
call fcn.14003ff30
test eax, eax
je 0x1400428c4
xor edx, edx
mov rcx, rsi
call fcn.140022110
lea rdx, str.HTTP_1.0_connection_set_to_keep_alive__n
mov rcx, rbx
call fcn.140018f20
jmp 0x140042dd0
lea r8, str.close
lea rdx, str.Connection:
mov rcx, rdi
call fcn.14003ff30
test eax, eax
je 0x1400428f0
mov edx, 2
mov rcx, rsi
call fcn.140022110
jmp 0x140042dd0
cmp dword [rbx + 0x658], 0
jne 0x140042966
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WS2_32.dll_select
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042931
lea rdx, [rdi + 0x12]
mov r8d, 1
mov rcx, rsi
call fcn.140024550
test eax, eax
je 0x140042dd0
jmp 0x140042dd2
cmp dword [rbx + 0x658], 0
jne 0x140042966
lea rcx, str.Content_Encoding:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042966
cmp qword [rbx + 0xc98], 0
je 0x140042966
lea rdx, [rdi + 0x11]
xor r8d, r8d
jmp 0x14004291c
lea rcx, str.Retry_After:
mov r8d, ntohl
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x1400429d5
lea rsi, [rdi + 0xc]
xor ebp, ebp
mov rcx, rsi
mov qword [rsp + 0x50], rbp
call fcn.14004db90
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400429bf
lea r9, [rsp + 0x50]
lea r8d, [rbp + 0xa]
xor edx, edx
mov rcx, rsi
call fcn.14004e1c0
mov rdi, qword [rsp + 0x50]
mov qword [rbx + 0x18e8], rdi
jmp 0x140042dd0
xor ecx, ecx
call sub.MSVCR120.dll__time64
sub rdi, rax
mov qword [rbx + 0x18e8], rdi
jmp 0x140042dd0
cmp dword [rbx + 0x658], 0
jne 0x140042a86
lea rcx, str.Content_Range:
mov r8d, reloc.WS2_32.dll_ntohl
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042a86
movzx eax, byte [rdi + 0xe]
add rdi, 0xe
test al, al
je 0x140042a2c
nop dword [rax + rax]
movzx ecx, al
call fcn.140024780
test eax, eax
jne 0x140042a2c
cmp byte [rdi], 0x2a
je 0x140042a2c
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x140042a10
movzx ecx, byte [rdi]
call fcn.140024780
test eax, eax
je 0x140042a78
xor edx, edx
lea r9, [rbx + 0x150]
mov rcx, rdi
lea r8d, [rdx + 0xa]
call fcn.14004e1c0
test eax, eax
jne 0x140042dd0
mov rax, qword [rbx + 0x150]
cmp qword [rbx + 0x16f8], rax
jne 0x140042dd0
mov dword [rbx + 0x64c], 1
jmp 0x140042dd0
xor ebp, ebp
mov qword [rbx + 0x16f8], rbp
jmp 0x140042dd0
cmp qword [rbx + 0x10d8], 0
je 0x140042b32
cmp dword [rbx + 0x184c], 0
je 0x140042b32
lea rcx, str.Set_Cookie:
mov r8d, ntohl
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042b32
mov edx, 2
mov rcx, rbx
mov r8d, edx
call fcn.140024140
mov r11, qword [rbx + 0x17f8]
test r11, r11
jne 0x140042add
mov r11, qword [rsi + 0x340]
mov rax, qword [rsi + 0x748]
lea rdx, [rdi + 0xb]
xor r9d, r9d
mov ecx, dword [rax + 0x7c]
mov rax, qword [rbx + 0x1778]
lea r8d, [r9 + 1]
shr ecx, 1
and ecx, 1
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x10d8]
mov rcx, rbx
call fcn.14001ebd0
mov edx, 2
mov rcx, rbx
call fcn.140024180
jmp 0x140042dd0
cmp dword [rbx + 0x658], 0
jne 0x140042b8f
lea rcx, str.Last_Modified:
mov r8d, reloc.WS2_32.dll_ntohl
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042b8f
cmp dword [rbx + 0xa00], 0
jne 0x140042b66
cmp dword [rbx + 0xfdc], 0
je 0x140042b8f
lea rcx, [rdi + 0xe]
call fcn.14004db90
mov qword [rbx + 0x180], rax
cmp dword [rbx + 0xfdc], 0
je 0x140042dd0
mov qword [rbx + 0x18b0], rax
jmp 0x140042dd0
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042bb5
mov eax, dword [rbx + 0x158]
cmp eax, 0x191
je 0x140042bdb
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WS2_32.dll_send
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042c21
mov eax, dword [rbx + 0x158]
cmp eax, 0x197
jne 0x140042c21
xor ebp, ebp
cmp eax, 0x197
mov rcx, rdi
sete bpl
call fcn.14003f040
mov rbx, rax
test rax, rax
je 0x1400427b6
mov r8, rax
mov edx, ebp
mov rcx, rsi
call fcn.14003f8b0
mov rcx, rbx
mov edi, eax
call qword [sub.MSVCR120.dll_free]
test edi, edi
je 0x140042dd0
mov eax, edi
jmp 0x140042dd2
lea rcx, str.Persistent_Auth
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042cab
cmp dword [rbx + 0x13d4], 4
jne 0x140042dd0
mov rcx, rdi
call fcn.14003f040
mov rdi, rax
test rax, rax
je 0x1400427b6
lea rcx, str.false
mov r8d, 5
mov rdx, rax
call fcn.140023dd0
xor ebp, ebp
lea rdx, str.Negotiate:_noauthpersist_____d__header_part:__s
test eax, eax
mov r9, rdi
mov rcx, rbx
setne bpl
mov dword [rsi + 0x99c], 1
mov r8d, ebp
mov dword [rsi + 0x998], ebp
call fcn.140018f20
mov rcx, rdi
call qword [sub.MSVCR120.dll_free]
jmp 0x140042dd0
mov eax, dword [rbx + 0x158]
cmp eax, 0x12c
jl 0x140042d36
cmp eax, 0x190
jge 0x140042d36
lea rcx, str.Location:
mov r8d, 9
mov rdx, rdi
call fcn.140023dd0
test eax, eax
je 0x140042d36
cmp qword [rbx + 0x190], 0
jne 0x140042d36
mov rcx, rdi
call fcn.14003f040
test rax, rax
je 0x1400427b6
cmp byte [rax], 0
je 0x1400427c5
cmp dword [rbx + 0x1010], 0
mov qword [rbx + 0x190], rax
je 0x140042dd0
mov rcx, rax
call qword [case.0x14001ea1c.0]
mov qword [rbx + 0x198], rax
test rax, rax
je 0x1400427b6
mov rcx, rsi
call fcn.14003f380
jmp 0x140042924
cmp qword [rbx + 0x10e0], 0
je 0x140042db1
mov ebp, 8
lea rcx, str.Alt_Svc:
mov rdx, rdi
mov r8d, ebp
call fcn.140023dd0
test eax, eax
je 0x140042db1
mov rax, qword [rsi + 0x748]
test byte [rax + 0x84], 1
je 0x140042db1
cmp dword [rsi + 0x488], 0x14
mov ecx, dword [rsi + 0x3f4]
mov eax, reloc.WS2_32.dll_recv
cmove ebp, eax
call fcn.14001d120
mov rdx, qword [rbx + 0x10e0]
mov word [rsp + 0x28], ax
mov rax, qword [rsi + 0x340]
lea r8, [rdi + 8]
mov r9d, ebp
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001dc60
jmp 0x140042924
mov rax, qword [rsi + 0x748]
test dword [rax + 0x7c], 0x40000
je 0x140042dd0
mov rdx, rdi
mov rcx, rsi
call fcn.14002ca70
test eax, eax
jne 0x140042dd2
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret