Function at 0x140037470
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 0x14003756d
cmp dword [rcx + 0x1048], 0
jne 0x14003756d
lea rcx, [0x1401b6438]
mov r8d, reloc.WSOCK32.dll_ntohs
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x14003756d
xor edx, edx
lea rcx, [rdi + 0xf]
lea r9, [rsp + 0x50]
lea r8d, [rdx + 0xa]
call fcn.1400429a0
test eax, eax
jne 0x140037526
mov rax, qword [rbx + 0xc10]
mov rdx, qword [rsp + 0x50]
test rax, rax
je 0x14003750b
cmp rdx, rax
jle 0x14003750b
lea rdx, str.Maximum_file_size_exceeded
mov rcx, rbx
call fcn.14000ffd0
mov eax, 0x3f
jmp 0x140037bb2
mov rcx, rbx
mov qword [rbx + 0xe8], rdx
mov qword [rbx + 0xf0], rdx
call fcn.140020360
jmp 0x140037bb0
cmp eax, 1
jne 0x140037554
cmp qword [rbx + 0xc10], 0
jne 0x1400374f2
lea edx, [rax + 1]
mov rcx, rsi
call fcn.1400185f0
lea rdx, str.Overflow_Content_Length:_value__n
mov rcx, rbx
call fcn.14000fe70
jmp 0x140037bb0
lea rdx, str.Invalid_Content_Length:_value
mov rcx, rbx
call fcn.14000ffd0
mov eax, 8
jmp 0x140037bb2
lea rcx, str.Content_Type:
mov r8d, reloc.WSOCK32.dll_listen
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x1400375cc
mov rcx, rdi
call fcn.140034090
mov rdi, rax
test rax, rax
jne 0x1400375a0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140037bb2
cmp byte [rax], 0
jne 0x1400375b3
mov rcx, rax
call qword [fcn.14017eed8]
jmp 0x140037bb0
mov rcx, qword [rbx + 0x18d8]
call qword [fcn.14017eed8]
mov qword [rbx + 0x18d8], rdi
jmp 0x140037bb0
cmp dword [rsi + 0x488], 0xa
jne 0x140037616
cmp dword [rsi + 0x690], 0
je 0x140037616
lea r8, str.keep_alive
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.140034f20
test eax, eax
je 0x140037616
xor edx, edx
mov rcx, rsi
call fcn.1400185f0
lea rdx, str.HTTP_1.0_proxy_connection_set_to_keep_alive__n
mov rcx, rbx
call fcn.14000fe70
jmp 0x140037bb0
cmp dword [rsi + 0x488], 0xb
jne 0x140037663
cmp dword [rsi + 0x690], 0
je 0x140037663
lea r8, [0x1401b6a88]
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.140034f20
test eax, eax
je 0x140037663
mov edx, 1
mov rcx, rsi
call fcn.1400185f0
lea rdx, str.HTTP_1.1_proxy_connection_set_close__n
mov rcx, rbx
call fcn.14000fe70
jmp 0x140037bb0
cmp dword [rsi + 0x488], 0xa
jne 0x1400376a4
lea r8, str.keep_alive
lea rdx, str.Connection:
mov rcx, rdi
call fcn.140034f20
test eax, eax
je 0x1400376a4
xor edx, edx
mov rcx, rsi
call fcn.1400185f0
lea rdx, str.HTTP_1.0_connection_set_to_keep_alive__n
mov rcx, rbx
call fcn.14000fe70
jmp 0x140037bb0
lea r8, [0x1401b6a88]
lea rdx, str.Connection:
mov rcx, rdi
call fcn.140034f20
test eax, eax
je 0x1400376d0
mov edx, 2
mov rcx, rsi
call fcn.1400185f0
jmp 0x140037bb0
cmp dword [rbx + 0x658], 0
jne 0x140037746
lea rcx, str.Transfer_Encoding:
mov r8d, reloc.WSOCK32.dll_select
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037711
lea rdx, [rdi + 0x12]
mov r8d, 1
mov rcx, rsi
call fcn.14001a2a0
test eax, eax
je 0x140037bb0
jmp 0x140037bb2
cmp dword [rbx + 0x658], 0
jne 0x140037746
lea rcx, str.Content_Encoding:
mov r8d, reloc.WSOCK32.dll_recvfrom
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037746
cmp qword [rbx + 0xc98], 0
je 0x140037746
lea rdx, [rdi + 0x11]
xor r8d, r8d
jmp 0x1400376fc
lea rcx, str.Retry_After:
mov r8d, reloc.WSOCK32.dll_ioctlsocket
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x1400377b5
lea rsi, [rdi + 0xc]
xor ebp, ebp
mov rcx, rsi
mov qword [rsp + 0x50], rbp
call fcn.140042370
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003779f
lea r9, [rsp + 0x50]
lea r8d, [rbp + 0xa]
xor edx, edx
mov rcx, rsi
call fcn.1400429a0
mov rdi, qword [rsp + 0x50]
mov qword [rbx + 0x18e8], rdi
jmp 0x140037bb0
xor ecx, ecx
call fcn.140179804
sub rdi, rax
mov qword [rbx + 0x18e8], rdi
jmp 0x140037bb0
cmp dword [rbx + 0x658], 0
jne 0x140037866
lea rcx, str.Content_Range:
mov r8d, reloc.WSOCK32.dll_ntohl
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037866
movzx eax, byte [rdi + 0xe]
add rdi, 0xe
test al, al
je 0x14003780c
nop dword [rax + rax]
movzx ecx, al
call fcn.14003b670
test eax, eax
jne 0x14003780c
cmp byte [rdi], 0x2a
je 0x14003780c
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400377f0
movzx ecx, byte [rdi]
call fcn.14003b670
test eax, eax
je 0x140037858
xor edx, edx
lea r9, [rbx + 0x150]
mov rcx, rdi
lea r8d, [rdx + 0xa]
call fcn.1400429a0
test eax, eax
jne 0x140037bb0
mov rax, qword [rbx + 0x150]
cmp qword [rbx + 0x16f8], rax
jne 0x140037bb0
mov dword [rbx + 0x64c], 1
jmp 0x140037bb0
xor ebp, ebp
mov qword [rbx + 0x16f8], rbp
jmp 0x140037bb0
cmp qword [rbx + 0x10d8], 0
je 0x140037912
cmp dword [rbx + 0x184c], 0
je 0x140037912
lea rcx, str.Set_Cookie:
mov r8d, ioctlsocket
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037912
mov edx, 2
mov rcx, rbx
mov r8d, edx
call fcn.140019ff0
mov r11, qword [rbx + 0x17f8]
test r11, r11
jne 0x1400378bd
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.1400151f0
mov edx, 2
mov rcx, rbx
call fcn.14001a030
jmp 0x140037bb0
cmp dword [rbx + 0x658], 0
jne 0x14003796f
lea rcx, str.Last_Modified:
mov r8d, reloc.WSOCK32.dll_ntohl
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x14003796f
cmp dword [rbx + 0xa00], 0
jne 0x140037946
cmp dword [rbx + 0xfdc], 0
je 0x14003796f
lea rcx, [rdi + 0xe]
call fcn.140042370
mov qword [rbx + 0x180], rax
cmp dword [rbx + 0xfdc], 0
je 0x140037bb0
mov qword [rbx + 0x18b0], rax
jmp 0x140037bb0
lea rcx, str.WWW_Authenticate:
mov r8d, reloc.WSOCK32.dll_recvfrom
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037995
mov eax, dword [rbx + 0x158]
cmp eax, 0x191
je 0x1400379bb
lea rcx, str.Proxy_authenticate:
mov r8d, reloc.WSOCK32.dll_send
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037a01
mov eax, dword [rbx + 0x158]
cmp eax, 0x197
jne 0x140037a01
xor ebp, ebp
cmp eax, 0x197
mov rcx, rdi
sete bpl
call fcn.140034090
mov rbx, rax
test rax, rax
je 0x140037596
mov r8, rax
mov edx, ebp
mov rcx, rsi
call fcn.1400348a0
mov rcx, rbx
mov edi, eax
call qword [fcn.14017eed8]
test edi, edi
je 0x140037bb0
mov eax, edi
jmp 0x140037bb2
lea rcx, str.Persistent_Auth
mov r8d, reloc.WSOCK32.dll_ntohs
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037a8b
cmp dword [rbx + 0x13d4], 4
jne 0x140037bb0
mov rcx, rdi
call fcn.140034090
mov rdi, rax
test rax, rax
je 0x140037596
lea rcx, [0x1401b69a8]
mov r8d, 5
mov rdx, rax
call fcn.140019fe0
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.14000fe70
mov rcx, rdi
call qword [fcn.14017eed8]
jmp 0x140037bb0
mov eax, dword [rbx + 0x158]
cmp eax, 0x12c
jl 0x140037b16
cmp eax, 0x190
jge 0x140037b16
lea rcx, str.Location:
mov r8d, 9
mov rdx, rdi
call fcn.140019fe0
test eax, eax
je 0x140037b16
cmp qword [rbx + 0x190], 0
jne 0x140037b16
mov rcx, rdi
call fcn.140034090
test rax, rax
je 0x140037596
cmp byte [rax], 0
je 0x1400375a5
cmp dword [rbx + 0x1010], 0
mov qword [rbx + 0x190], rax
je 0x140037bb0
mov rcx, rax
call qword [case.0x1400150ac.0]
mov qword [rbx + 0x198], rax
test rax, rax
je 0x140037596
mov rcx, rsi
call fcn.140034370
jmp 0x140037704
cmp qword [rbx + 0x10e0], 0
je 0x140037b91
mov ebp, 8
lea rcx, str.Alt_Svc:
mov rdx, rdi
mov r8d, ebp
call fcn.140019fe0
test eax, eax
je 0x140037b91
mov rax, qword [rsi + 0x748]
test byte [rax + 0x84], 1
je 0x140037b91
cmp dword [rsi + 0x488], 0x14
mov ecx, dword [rsi + 0x3f4]
mov eax, reloc.WSOCK32.dll_recv
cmove ebp, eax
call fcn.140013ad0
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.140014400
jmp 0x140037704
mov rax, qword [rsi + 0x748]
test dword [rax + 0x7c], 0x40000
je 0x140037bb0
mov rdx, rdi
mov rcx, rsi
call fcn.1400233a0
test eax, eax
jne 0x140037bb2
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret