Function at 0x5dd300
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov edx, 0x36ee80
push ebx
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
push esi
mov ebx, dword [ecx]
push edi
movlpd qword [ebp - 0x3c], xmm0
mov eax, dword [ebx + 0x19c]
test eax, eax
cmovne edx, eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ecx + eax*4 + 0x130]
lea eax, [ecx + eax*4]
xor esi, esi
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], eax
mov dword [ecx + 0x1f4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], eax
nop
cmp dword [ecx + 0x1d0], 0
jne 0x5dd551
movzx esi, word [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebx
call fcn.005b93e0
mov eax, dword [ebx + 0xd4]
add esp, 0x10
test eax, eax
je 0x5dd3a0
push eax
call fcn.004b4d24
add esp, 4
mov dword [ebx + 0xd4], 0
call fcn.005cd3e0
mov edi, eax
test edi, edi
je 0x5dda9f
push esi
push dword [ebp + 0x10]
push str._s:_hu
call fcn.005b99f0
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x5dda96
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.005cdcd0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dd521
mov ecx, dword [ebp + 8]
mov eax, 0x61d6b0
mov esi, 0x5f9af8
push str.Host:
push ebx
cmp dword [ecx + 0x114], 1
mov ecx, 0x636f1c
mov dword [ebp - 0x14], esi
cmovne eax, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], eax
call fcn.005cd870
add esp, 8
test eax, eax
jne 0x5dd43c
push dword [ebp - 0x20]
push str.Host:__s_r_n
call fcn.005b99f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
je 0x5dda70
push str.Proxy_Connection:
push ebx
call fcn.005cd870
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x5f9af8
cmovne ecx, eax
push str.User_Agent:
push ebx
mov dword [ebp - 8], ecx
call fcn.005cd870
add esp, 0x10
test eax, eax
jne 0x5dd47f
cmp dword [ebx + 0x3a0], eax
je 0x5dd47f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x228]
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, 0x5f9af8
push dword [ebp - 0x1c]
mov eax, dword [eax + 0x224]
test eax, eax
cmovne ecx, eax
movzx eax, word [ebp + 0x14]
push ecx
push esi
push dword [ebp - 0x38]
push eax
push dword [ebp + 0x10]
push str.CONNECT__s:_hu_HTTP__s_r_n_s_s_s_s
push edi
call fcn.005cd5b0
mov esi, eax
add esp, 0x24
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5dd4ca
cmp byte [eax], 0
je 0x5dd4ca
push eax
call fcn.004b4d24
add esp, 4
test esi, esi
jne 0x5dd50d
push edi
push dword [ebp + 8]
call fcn.005cd620
mov esi, eax
add esp, 8
test esi, esi
jne 0x5dd50d
push 0x5fbb1c
push edi
call fcn.005cd5b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5dd50d
push dword [ebp + 0xc]
push eax
lea eax, [ebx + 0x86a4]
push eax
push dword [ebp + 8]
push edi
call fcn.005cd3f0
add esp, 0x14
mov esi, eax
xor edi, edi
test esi, esi
je 0x5dd521
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.005b9340
add esp, 8
push dword [ebp - 0x20]
call fcn.004b4d24
add esp, 4
test edi, edi
je 0x5dd539
push edi
call fcn.004b4d24
add esp, 4
test esi, esi
jne 0x5dda8d
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x2c]
mov dword [ecx + 0x1d0], 1
push dword [ecx + 0x124]
push dword [ecx + 0x120]
call fcn.005c81f0
push edx
push eax
call fcn.005c8180
mov ecx, dword [ebp - 0x30]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x5ddb8b
cmp dword [ebx + 0x520], 2
jne 0x5dd597
push 0
push 0xffffffffffffffff
push edi
call fcn.005d06e0
add esp, 0xc
test eax, eax
je 0x5ddb82
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x53c]
mov dword [ebp - 0x1c], eax
mov esi, eax
mov eax, 1
mov dword [ebp - 0x20], 0
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ecx + 0x1d0], 0
test eax, eax
je 0x5dda0f
cmp dword [ebp - 0x24], 0
jne 0x5ddb2a
push dword [ecx + 0x124]
push dword [ecx + 0x120]
call fcn.005c81f0
push edx
push eax
call fcn.005c8180
mov ecx, dword [ebp - 0x30]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x5ddab7
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.005d06e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x5dd9d3
test eax, eax
je 0x5dd9e8
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.005b9460
add esp, 0x14
cmp eax, 0x51
je 0x5dd9fc
test eax, eax
je 0x5dd658
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5dd9e8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jg 0x5dd690
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebx + 0x118], eax
je 0x5dd686
cmp dword [ebx + 0x85dc], eax
je 0x5dd686
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1f4], 1
jmp 0x5dd9eb
push str.Proxy_CONNECT_aborted
jmp 0x5dd9d8
add dword [ebp - 0x20], ecx
cmp dword [ebp - 8], 1
jle 0x5dd733
mov eax, dword [ebp - 0xc]
lea edx, [ebx + 0x53c]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], edx
je 0x5dd6e8
mov eax, ecx
mov ecx, dword [ebp - 0xc]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
sbb eax, edx
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x5dd9e8
jl 0x5dd64e
test ecx, ecx
jne 0x5dd9e8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5dd9e8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
push edx
push dword [ebp + 8]
call fcn.005cb7b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5dd71d
push str.chunk_reading_DONE_n
push ebx
call fcn.005b93e0
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5dd9e8
push dword [ebp - 0x14]
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.005b93e0
add esp, 0xc
jmp 0x5dd9e8
xor eax, eax
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x5dd9e8
mov edx, dword [ebp - 0x1c]
inc edi
cmp byte [edx], 0xa
jne 0x5dd8e8
cmp dword [ebx + 0x2e4], 0
je 0x5dd766
push dword [ebp + 8]
push edi
push esi
push 1
push ebx
call fcn.005b9260
add esp, 0x14
xor eax, eax
cmp dword [ebx + 0x2c8], eax
push edi
setne al
push esi
add eax, 2
push eax
push dword [ebp + 8]
call fcn.005b9100
add esp, 0x10
test eax, eax
jne 0x5ddb9e
mov al, byte [esi]
cmp al, 0xd
je 0x5dd8fd
cmp al, 0xa
je 0x5dd8fd
mov cl, byte [edi + esi]
lea eax, [edi + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov dword [ebp - 0x38], eax
mov byte [ebp - 1], cl
mov byte [eax], 0
call fcn.005c7dd0
add esp, 0xc
test eax, eax
je 0x5dd7cc
mov eax, dword [ebx + 0x90]
cmp eax, 0x191
je 0x5dd7ed
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.005c7dd0
add esp, 0xc
test eax, eax
je 0x5dd807
mov eax, dword [ebx + 0x90]
cmp eax, 0x197
jne 0x5dd807
push esi
push eax
push dword [ebp + 8]
call fcn.005cdb60
add esp, 0xc
test eax, eax
jne 0x5ddb9e
jmp 0x5dd8d2
push 0xf
push esi
push str.Content_Length:
call fcn.005c7dd0
add esp, 0xc
test eax, eax
je 0x5dd836
push 0xa
push 0
add esi, 0xf
push esi
call fcn.004bdb7d
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
jmp 0x5dd8d2
push str.close
push str.Connection:
push esi
call fcn.005cd8c0
add esp, 0xc
test eax, eax
je 0x5dd856
mov dword [ebp - 0x28], 1
jmp 0x5dd8d2
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.005cd8c0
add esp, 0xc
test eax, eax
je 0x5dd88c
push str.CONNECT_responded_chunked_n
push ebx
call fcn.005b93e0
push dword [ebp + 8]
mov dword [ebp - 0x34], 1
call fcn.005cb790
add esp, 0xc
jmp 0x5dd8d2
push str.close
push str.Proxy_Connection:
push esi
call fcn.005cd8c0
add esp, 0xc
test eax, eax
je 0x5dd8ac
mov dword [ebp - 0x28], 1
jmp 0x5dd8d2
lea edi, [ebx + 0x90]
push edi
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1._d__d
push esi
call fcn.0043edb0
add esp, 0x10
cmp eax, 2
jne 0x5dd8d2
mov eax, dword [edi]
mov dword [ebx + 0x8690], eax
mov eax, dword [ebp - 0x38]
xor edi, edi
mov edx, dword [ebp - 0x1c]
mov cl, byte [ebp - 1]
mov byte [eax], cl
mov ecx, dword [ebp - 0x18]
lea esi, [edx + 1]
mov eax, dword [ebp - 0x14]
inc eax
inc edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
cmp eax, ecx
jl 0x5dd743
jmp 0x5dd9e8
cmp dword [ebx + 0x90], 0x197
lea eax, [ebx + 0x53c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
jne 0x5dd64e
cmp dword [ebx + 0x85ec], 0
jne 0x5dd64e
mov ecx, dword [ebp - 0xc]
mov eax, ecx
mov edx, dword [ebp - 0x10]
or eax, edx
mov dword [ebp - 8], 2
je 0x5dd958
push edx
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push ebx
call fcn.005b93e0
mov eax, dword [ebp - 0x18]
add esp, 0x10
sub eax, dword [ebp - 0x14]
jmp 0x5dd6b7
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5dd64e
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push eax
push str._zd_bytes_of_chunk_left_n
push ebx
mov dword [ebx + 0xc8], 1
call fcn.005b93e0
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x5dd98c
inc esi
inc dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push eax
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call fcn.005cb7b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5dd9c0
push str.chunk_reading_DONE_n
push ebx
call fcn.005b93e0
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5dd9e8
push dword [ebp - 0x18]
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.005b93e0
add esp, 0xc
jmp 0x5dd9e8
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebx
mov dword [ebp - 0x24], 1
call fcn.005b9340
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.005cf870
add esp, 4
test eax, eax
jne 0x5ddaab
cmp dword [ebp - 0x20], 0x4000
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
jb 0x5dd5c0
cmp dword [ebp - 0x24], 0
jne 0x5ddb2a
cmp dword [ebx + 0x8690], 0xc8
je 0x5dda4b
push ecx
call fcn.005cd990
add esp, 4
test eax, eax
jne 0x5ddb9e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x198], eax
je 0x5dda4b
mov esi, 1
mov dword [ebp - 0x28], esi
jmp 0x5dda52
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x5dda5b
cmp dword [ebx + 0xd4], 0
jne 0x5ddad1
cmp dword [ebx + 0xd4], 0
je 0x5ddaf4
mov edi, dword [ebp - 0x2c]
jmp 0x5dd360
push edi
call fcn.004b4d24
push dword [ebp - 0x20]
call fcn.004b4d24
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004b4d24
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.005b9340
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push dword [ecx + eax*4 + 0x130]
lea edi, [ecx + eax*4]
push ecx
call fcn.005c5210
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [edi + 0x130], 0xffffffff
mov eax, dword [ebx + 0x90]
cmp eax, 0xc8
je 0x5ddb36
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.005b9340
add esp, 0xc
test esi, esi
je 0x5ddb2a
cmp dword [ebx + 0xd4], 0
je 0x5ddb2a
mov eax, dword [ebp + 8]
mov dword [eax + 0x1f4], 1
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x224]
test eax, eax
je 0x5ddb56
push eax
call fcn.004b4d24
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0x224], 0
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ecx + 0x224], 0
push ebx
mov dword [ebx + 0x85e0], 1
call fcn.005b93e0
add esp, 8
mov dword [ebx + 0xc8], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.005b9340
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret