Function at 0x56bd90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push edi
xor edi, edi
mov dword [ebp - 0x38], edi
mov ecx, dword [ebx + 0x19c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ecx
cmp ecx, edi
jne 0x56bdb9
mov dword [ebp - 0x2c], 0x36ee80
mov ecx, dword [ebp + 0xc]
cmp dword [eax + ecx*4 + 0x46c], 2
mov edx, dword [eax + ecx*4 + 0x130]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], edi
jne 0x56bde7
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [eax + 0x1f8], edi
mov esi, dword [ebp + 0x10]
cmp dword [eax + ecx*4 + 0x46c], edi
jne 0x56c009
movzx edi, word [ebp + 0x14]
push edi
push esi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebx
call fcn.00552bd0
mov eax, dword [ebx + 0xd4]
add esp, 0x10
test eax, eax
je 0x56be2f
push eax
call fcn.00510207
add esp, 4
mov dword [ebx + 0xd4], 0
call fcn.00564240
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x56c604
push edi
push esi
push str._s:_hu
call sym.PlatSoftware.exe_curl_maprintf
mov edi, eax
add esp, 0xc
test edi, edi
je 0x56c5c5
mov eax, dword [ebp + 8]
push 1
push edi
push str.CONNECT
push eax
call fcn.00563e60
push edi
mov esi, eax
call fcn.00510207
add esp, 0x14
test esi, esi
jne 0x56c599
mov eax, dword [ebp + 8]
cmp dword [eax + 0x114], 1
mov ebx, 0x5bb029
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0x5b5970
je 0x56bea3
mov dword [ebp - 0xc], 0x5b5974
mov eax, dword [eax + 0x1b8]
mov edx, 0x5b1de8
test eax, eax
jne 0x56c114
mov edx, ebx
mov eax, ebx
movzx ecx, word [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
push str._s_s_s:_hu
call sym.PlatSoftware.exe_curl_maprintf
mov edi, eax
add esp, 0x14
test edi, edi
je 0x56c5da
mov esi, dword [ebp - 0x28]
push str.Host:
push esi
call fcn.00563920
add esp, 8
test eax, eax
jne 0x56bf09
push edi
push str.Host:__s_r_n
call sym.PlatSoftware.exe_curl_maprintf
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x56c5f2
push str.Proxy_Connection:
push esi
call fcn.00563920
add esp, 8
test eax, eax
jne 0x56bf22
mov dword [ebp - 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push esi
call fcn.00563920
add esp, 8
test eax, eax
jne 0x56bf48
cmp dword [esi + 0x3a4], eax
je 0x56bf48
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x22c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x228]
test eax, eax
jne 0x56bf5a
mov eax, 0x5bb029
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push ebx
push edx
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.00564ae0
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x56bf8e
cmp byte [ebx], 0
je 0x56bf8e
push ebx
call fcn.00510207
add esp, 4
push edi
call fcn.00510207
add esp, 4
test esi, esi
jne 0x56c57f
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.00564be0
mov esi, eax
add esp, 8
test esi, esi
jne 0x56c57f
push 0x5b20e0
push ebx
call fcn.00564ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x56c57f
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
push ebx
push eax
add ecx, 0x86c4
push ecx
push edi
push edx
call fcn.00564250
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x56c57f
mov dword [edi + ebx*4 + 0x46c], 1
mov ebx, dword [ebp - 0x28]
mov eax, edi
xor edi, edi
mov ecx, dword [eax + 0x124]
mov edx, dword [eax + 0x120]
push ecx
push edx
call fcn.0056c770
push edx
push eax
call fcn.0056c7a0
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x56c610
cmp dword [ebx + 0x540], 2
jne 0x56c055
mov edx, dword [ebp - 0x30]
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00567670
add esp, 0x10
test eax, eax
je 0x56c6f4
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x55c]
mov dword [ebp - 0xc], eax
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x56c51a
cmp dword [ebp - 0x24], 0
jne 0x56c69a
mov eax, dword [edi + 0x124]
mov ecx, dword [edi + 0x120]
push eax
push ecx
call fcn.0056c770
push edx
push eax
call fcn.0056c7a0
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x56c5ab
cmp ecx, 0x3e8
jl 0x56c0bd
mov ecx, 0x3e8
mov edx, dword [ebp - 0x30]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00567670
add esp, 0x10
cmp eax, 0xffffffff
je 0x56c4e7
test eax, eax
je 0x56c4fc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x30]
mov ecx, 0x4000
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
push eax
push edi
call fcn.005528f0
add esp, 0x14
cmp eax, 0x51
je 0x56c50d
xor ecx, ecx
cmp eax, ecx
je 0x56c11e
mov dword [ebp - 8], ecx
jmp 0x56c4fc
mov eax, 0x5b1dcc
jmp 0x56beba
mov eax, dword [ebp - 0x10]
cmp eax, ecx
jg 0x56c151
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x118], ecx
je 0x56c147
cmp dword [ebx + 0x85fc], ecx
je 0x56c147
mov dword [edi + 0x1f8], 1
jmp 0x56c4fc
push str.Proxy_CONNECT_aborted
jmp 0x56c4ec
add dword [ebp - 0x1c], eax
mov edx, 1
cmp dword [ebp - 8], edx
jle 0x56c1ee
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx + 0x55c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x40]
or ecx, dword [ebp - 0x3c]
je 0x56c1a2
cdq
sub dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
sbb eax, edx
mov dword [ebp - 0x3c], eax
test eax, eax
jg 0x56c4fc
jl 0x56c196
cmp dword [ebp - 0x40], 0
ja 0x56c4fc
mov dword [ebp - 8], 0
jmp 0x56c4fc
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0x14], 0
call fcn.0056e100
add esp, 0x10
cmp eax, 0xffffffff
jne 0x56c1d7
push str.chunk_reading_DONE_n
push ebx
call fcn.00552bd0
mov dword [ebp - 8], 0
jmp 0x56c4f9
mov ecx, dword [ebp - 0x14]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.00552bd0
add esp, 0xc
jmp 0x56c4fc
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jle 0x56c4fc
jmp 0x56c202
xor ecx, ecx
add dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
cmp byte [edx], 0xa
jne 0x56c3b3
cmp dword [ebx + 0x2e4], ecx
je 0x56c22a
mov eax, dword [ebp - 0x18]
push edi
push eax
push esi
push 1
push ebx
call fcn.00552a30
add esp, 0x14
cmp dword [ebx + 0x2c8], 0
mov eax, 2
je 0x56c23d
mov eax, 3
mov ecx, dword [ebp - 0x18]
push ecx
push esi
push eax
push edi
call fcn.00553060
add esp, 0x10
test eax, eax
jne 0x56c6f6
mov al, byte [esi]
cmp al, 0xd
je 0x56c3d0
cmp al, 0xa
je 0x56c3d0
mov eax, dword [ebp - 0x18]
mov dl, byte [eax + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [ebp - 1], dl
mov byte [eax + esi], 0
call fcn.0056ca40
add esp, 0xc
test eax, eax
je 0x56c294
mov eax, dword [ebx + 0x90]
cmp eax, 0x191
je 0x56c2b5
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.0056ca40
add esp, 0xc
test eax, eax
je 0x56c2cd
mov eax, dword [ebx + 0x90]
cmp eax, 0x197
jne 0x56c2cd
push esi
push eax
push edi
call fcn.00563f70
add esp, 0xc
test eax, eax
jne 0x56c6f6
jmp 0x56c39c
push 0xf
push esi
push str.Content_Length:
call fcn.0056ca40
add esp, 0xc
test eax, eax
je 0x56c2fc
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0051accb
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x56c39c
push str.close
push str.Connection:
push esi
call fcn.005644e0
add esp, 0xc
test eax, eax
je 0x56c31f
mov dword [ebp - 0x20], 1
jmp 0x56c39c
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.005644e0
add esp, 0xc
test eax, eax
je 0x56c353
push str.CONNECT_responded_chunked_n
push ebx
call fcn.00552bd0
push edi
mov dword [ebp - 0x34], 1
call fcn.0056e0e0
add esp, 0xc
jmp 0x56c39c
push str.close
push str.Proxy_Connection:
push esi
call fcn.005644e0
add esp, 0xc
test eax, eax
je 0x56c373
mov dword [ebp - 0x20], 1
jmp 0x56c39c
lea edi, [ebx + 0x90]
push edi
lea ecx, [ebp - 0x38]
push ecx
push str.HTTP_1._d__d
push esi
call fcn.00536aec
add esp, 0x10
cmp eax, 2
jne 0x56c399
mov edx, dword [edi]
mov dword [ebx + 0x86b0], edx
mov edi, dword [ebp + 8]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], al
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
inc esi
mov ecx, dword [ebp - 0x14]
mov edx, 1
add dword [ebp - 0xc], edx
add ecx, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x56c200
jmp 0x56c4fc
xor ecx, ecx
cmp dword [ebx + 0x90], 0x197
lea eax, [ebx + 0x55c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], eax
jne 0x56c4bc
cmp dword [ebx + 0x860c], ecx
jne 0x56c4bc
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 8], 2
je 0x56c455
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebx
call fcn.00552bd0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
add esp, 0x10
cdq
sub dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
sbb eax, edx
mov dword [ebp - 0x3c], eax
test eax, eax
jg 0x56c4fc
jl 0x56c196
cmp dword [ebp - 0x40], 0
ja 0x56c4fc
mov dword [ebp - 8], 0
jmp 0x56c4fc
cmp dword [ebp - 0x34], ecx
je 0x56c10c
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0xc8], 1
push eax
push str._zd_bytes_of_chunk_left_n
push ebx
call fcn.00552bd0
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x56c487
inc esi
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push edx
lea eax, [esi + 1]
push eax
push edi
call fcn.0056e100
add esp, 0x10
cmp eax, 0xffffffff
je 0x56c1c0
mov ecx, dword [ebp - 0x10]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.00552bd0
add esp, 0xc
jmp 0x56c4fc
cmp dword [ebx + 0x86b0], 0xc8
mov dword [ebp - 8], ecx
jne 0x56c4fc
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
dec eax
cmp eax, ecx
je 0x56c4fc
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebx
call fcn.00552c50
add esp, 0xc
jmp 0x56c4fc
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebx
mov dword [ebp - 0x24], 1
call fcn.00552c50
add esp, 8
push edi
call fcn.0056b600
add esp, 4
test eax, eax
jne 0x56c62a
cmp dword [ebp - 0x1c], 0x4000
jb 0x56c072
cmp dword [ebp - 0x24], 0
jne 0x56c69a
cmp dword [ebx + 0x86b0], 0xc8
je 0x56c552
push edi
call fcn.00564900
add esp, 4
test eax, eax
jne 0x56c6f6
cmp dword [edi + 0x1a0], eax
je 0x56c552
mov dword [ebp - 0x20], 1
jmp 0x56c558
cmp dword [ebp - 0x20], 0
je 0x56c565
cmp dword [ebx + 0xd4], 0
jne 0x56c636
cmp dword [ebx + 0xd4], 0
je 0x56c657
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
jmp 0x56bdee
mov edx, dword [ebp - 0x28]
push str.Failed_sending_CONNECT_to_proxy
push edx
call fcn.00552c50
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00510207
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.00552c50
add esp, 8
pop esi
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00510207
add esp, 4
pop esi
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00510207
add esp, 4
pop esi
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00510207
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00510207
add esp, 8
pop esi
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.00552c50
add esp, 8
pop esi
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov edx, dword [edi + esi*4 + 0x130]
push edx
push edi
call fcn.00553b80
add esp, 8
mov dword [edi + esi*4 + 0x130], 0xffffffff
jmp 0x56c65a
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x90]
cmp eax, 0xc8
je 0x56c6a6
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.00552c50
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x56c68f
cmp dword [ebx + 0xd4], 0
je 0x56c68f
mov dword [edi + 0x1f8], 1
mov dword [edi + esi*4 + 0x46c], 0
pop esi
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + esi*4 + 0x46c], 2
mov eax, dword [edi + 0x228]
test eax, eax
je 0x56c6ce
push eax
call fcn.00510207
add esp, 4
xor esi, esi
mov dword [edi + 0x228], esi
jmp 0x56c6d0
xor esi, esi
push 0x5b6710
mov dword [edi + 0x228], esi
push ebx
mov dword [ebx + 0x8600], 1
call fcn.00552bd0
add esp, 8
mov dword [ebx + 0xc8], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret