Function at 0x439750
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp dword [eax + ecx*4 + 0x4bc], 2
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + ecx*4 + 0x154]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], edx
jne 0x439790
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov dword [eax + 0x228], edx
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp dword [eax + ecx*4 + 0x4bc], edx
jne 0x4399b5
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.0041ef40
mov eax, dword [esi + 0x10c]
add esp, 0x10
test eax, eax
je 0x4397d8
push eax
call dword [0x45a200]
add esp, 4
mov dword [esi + 0x10c], 0
call fcn.00434d20
mov dword [ebp - 0x18], eax
test eax, eax
je 0x43a069
push ebx
push edi
push str._s:_hu
call fcn.00423890
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x43a023
mov eax, dword [ebp + 8]
push 1
push ebx
push str.CONNECT
push eax
call fcn.00434960
push ebx
mov edi, eax
call dword [0x45a200]
add esp, 0x14
test edi, edi
jne 0x439ff3
mov edi, dword [ebp + 8]
cmp dword [edi + 0x138], 1
mov edx, 0x456cbb
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0x4514c8
je 0x43984e
mov dword [ebp - 8], 0x4514cc
mov eax, dword [edi + 0x1e8]
mov ecx, 0x453f04
test eax, eax
jne 0x439a8d
mov ecx, edx
mov eax, edx
mov edx, dword [ebp + 0x14]
push edx
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push eax
push str._s_s_s:_hu
call fcn.00423890
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x43a03c
push str.Host:
push edi
call fcn.00434370
add esp, 8
test eax, eax
jne 0x4398b1
push ebx
push str.Host:__s_r_n
call fcn.00423890
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x43a055
push str.Proxy_Connection:
push edi
call fcn.00434370
add esp, 8
test eax, eax
jne 0x4398ca
mov dword [ebp - 0x10], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.00434370
add esp, 8
test eax, eax
jne 0x4398ed
cmp dword [esi + 0x3f4], eax
je 0x4398ed
mov edx, dword [edi + 0x25c]
mov dword [ebp - 0xc], edx
mov eax, dword [edi + 0x258]
test eax, eax
jne 0x4398fc
mov eax, 0x456cbb
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ecx
push ebx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.00435640
add esp, 0x20
cmp dword [ebp - 0x1c], 0
mov edi, eax
je 0x43993b
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
je 0x43993b
mov ecx, eax
push ecx
call dword [0x45a200]
add esp, 4
push ebx
call dword [0x45a200]
add esp, 4
test edi, edi
jne 0x439fdc
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
push edx
push 1
push ebx
call fcn.00435720
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x439fdc
mov eax, dword [ebp - 0x18]
push 0x44c9d0
push eax
call fcn.00435640
mov edi, eax
add esp, 8
test edi, edi
jne 0x439fdc
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x8734]
push edx
push ebx
push eax
call fcn.00434d30
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x439fdc
mov ecx, dword [ebp + 0xc]
mov dword [ebx + ecx*4 + 0x4bc], 1
push 1
push 0
push esi
call fcn.00420d20
add esp, 0xc
test eax, eax
jle 0x43a075
mov edx, dword [ebp - 0x28]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00414ed0
add esp, 0x10
test eax, eax
je 0x43a1be
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x5d4]
mov dword [ebp - 0x10], eax
mov edi, eax
xor eax, eax
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x439f42
cmp dword [ebp - 0x24], 0
jne 0x43a15d
push 1
push 0
push esi
call fcn.00420d20
add esp, 0xc
test eax, eax
jle 0x43a009
cmp eax, 0x3e8
jl 0x439a36
mov eax, 0x3e8
push eax
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00414ed0
add esp, 0x10
cmp eax, 0xffffffff
je 0x439f0f
test eax, eax
je 0x439f24
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, 0x4000
sub edx, dword [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
call fcn.0041ecd0
add esp, 0x14
cmp eax, 0x51
je 0x439f35
xor ecx, ecx
cmp eax, ecx
je 0x439a97
mov dword [ebp - 8], ecx
jmp 0x439f24
mov eax, str.___:__nw
jmp 0x439865
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jg 0x439ad5
mov dword [ebp - 8], ecx
cmp dword [esi + 0x158], ecx
je 0x439acb
cmp dword [esi + 0x8674], ecx
je 0x439acb
push str.Proxy_CONNECT_connection_closed
push esi
mov dword [ebx + 0x228], 1
call fcn.0041ef40
jmp 0x439f21
push str.Proxy_CONNECT_aborted
jmp 0x439f14
add dword [ebp - 0x1c], eax
mov edx, 1
cmp dword [ebp - 8], edx
jle 0x439b80
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + 0x5d4]
mov dword [ebp - 0x10], ecx
je 0x439b26
cdq
sub dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov dword [ebp - 0x38], eax
test eax, eax
jg 0x439f24
jl 0x439b1a
cmp dword [ebp - 0x3c], 0
ja 0x439f24
mov dword [ebp - 8], 0
jmp 0x439f24
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push ebx
mov dword [ebp - 0x18], 0
call fcn.004436d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439b69
push str.chunk_reading_DONE_n
push esi
call fcn.0041ef40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebx + eax*4 + 0x4bc], 2
jmp 0x439f21
mov ecx, dword [ebp - 0x18]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0041ef40
add esp, 0xc
jmp 0x439f24
mov dword [ebp - 0x18], ecx
cmp eax, ecx
jle 0x439f24
jmp 0x439b92
xor ecx, ecx
add dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0xa
jne 0x439d85
cmp dword [esi + 0x334], ecx
je 0x439bba
mov eax, dword [ebp - 0xc]
push ebx
push eax
push edi
push 1
push esi
call fcn.0041ee60
add esp, 0x14
cmp dword [esi + 0x318], 0
mov eax, 2
je 0x439bcd
mov eax, 3
mov ecx, dword [ebp - 0xc]
push ecx
push edi
push eax
push ebx
call fcn.0041f460
mov ecx, dword [ebp - 0xc]
add dword [esi + 0x8730], ecx
add dword [esi + 0x80], ecx
add esp, 0x10
test eax, eax
jne 0x43a1c0
mov al, byte [edi]
cmp al, 0xd
je 0x439da2
cmp al, 0xa
je 0x439da2
mov eax, ecx
mov dl, byte [eax + edi]
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [ebp - 1], dl
mov byte [eax + edi], 0
call fcn.0043a3a0
add esp, 0xc
test eax, eax
je 0x439c32
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x439c53
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.0043a3a0
add esp, 0xc
test eax, eax
je 0x439ca2
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x439ca2
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov dword [ebp - 0x30], ecx
call fcn.004343e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43a069
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
push ebx
push edx
push eax
call fcn.00434a70
push ebx
mov dword [ebp - 0x30], eax
call dword [0x45a200]
add esp, 0x10
cmp dword [ebp - 0x30], 0
je 0x439d6b
mov eax, dword [ebp - 0x30]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xf
push edi
push str.Content_Length:
call fcn.0043a3a0
add esp, 0xc
test eax, eax
je 0x439cd1
push 0xa
lea ecx, [edi + 0xf]
push 0
push ecx
call fcn.004149c5
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
jmp 0x439d6b
push str.close
push str.Connection:
push edi
call fcn.00434fc0
add esp, 0xc
test eax, eax
je 0x439cf1
mov dword [ebp - 0x20], 1
jmp 0x439d6b
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.00434fc0
add esp, 0xc
test eax, eax
je 0x439d25
push str.CONNECT_responded_chunked_n
push esi
call fcn.0041ef40
push ebx
mov dword [ebp - 0x2c], 1
call fcn.004436b0
add esp, 0xc
jmp 0x439d6b
push str.close
push str.Proxy_Connection:
push edi
call fcn.00434fc0
add esp, 0xc
test eax, eax
je 0x439d45
mov dword [ebp - 0x20], 1
jmp 0x439d6b
lea ebx, [esi + 0xc8]
push ebx
lea edx, [ebp - 0x34]
push edx
push str.HTTP_1._d__d
push edi
call fcn.00405c32
add esp, 0x10
cmp eax, 2
jne 0x439d6b
mov eax, dword [ebx]
mov dword [esi + 0x8720], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp - 1]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
mov byte [edx + edi], cl
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
inc edi
mov ecx, dword [ebp - 0x18]
mov edx, 1
add dword [ebp - 0x10], edx
add ecx, edx
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jl 0x439b90
jmp 0x439f24
xor ecx, ecx
cmp dword [esi + 0xc8], 0x197
lea eax, [esi + 0x5d4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jne 0x439ed6
cmp dword [esi + 0x8684], ecx
jne 0x439ed6
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x38]
mov dword [ebp - 8], 2
je 0x439e31
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
push eax
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.0041ef40
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
add esp, 0x10
cdq
sub dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
sbb eax, edx
mov dword [ebp - 0x38], eax
test eax, eax
jg 0x439eff
jl 0x439e17
cmp dword [ebp - 0x3c], 0
ja 0x439eff
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebx + edx*4 + 0x4bc], 2
jmp 0x439f24
cmp dword [ebp - 0x2c], ecx
je 0x439ec3
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [esi + 0x100], 1
push edx
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.0041ef40
add esp, 0xc
cmp byte [edi + 1], 0xa
jne 0x439e63
inc edi
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
lea edx, [edi + 1]
push edx
push ebx
call fcn.004436d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439eb2
push str.chunk_reading_DONE_n
push esi
call fcn.0041ef40
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebx + eax*4 + 0x4bc], 2
add esp, 8
mov dword [ebp - 8], 0
mov dword [ebx + edx*4 + 0x4bc], 2
jmp 0x439f24
mov ecx, dword [ebp - 0x14]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0041ef40
jmp 0x439efc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebx + edx*4 + 0x4bc], 2
jmp 0x439f24
cmp dword [esi + 0x8720], 0xc8
mov dword [ebp - 8], ecx
jne 0x439eff
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
dec eax
cmp eax, ecx
je 0x439eff
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.0041efc0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebx + edx*4 + 0x4bc], 2
jmp 0x439f24
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [ebp - 0x24], 1
call fcn.0041efc0
add esp, 8
push ebx
call fcn.0043afa0
add esp, 4
test eax, eax
jne 0x43a08f
cmp dword [ebp - 0x1c], 0x4000
jb 0x439a01
cmp dword [ebp - 0x24], 0
jne 0x43a15d
cmp dword [esi + 0x8720], 0xc8
je 0x439f7a
push ebx
call fcn.00435460
add esp, 4
test eax, eax
jne 0x43a1c0
cmp dword [ebx + 0x1d0], eax
je 0x439f7a
mov dword [ebp - 0x20], 1
jmp 0x439f80
cmp dword [ebp - 0x20], 0
je 0x439f8d
cmp dword [esi + 0x10c], 0
jne 0x43a09b
cmp dword [esi + 0x10c], 0
mov edi, dword [ebp + 0xc]
je 0x43a0ba
cmp dword [ebx + edi*4 + 0x4bc], 2
jne 0x439fc2
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ebx + edi*4 + 0x4bc], 0
call fcn.0041ef40
add esp, 0xc
cmp dword [esi + 0x10c], 0
je 0x43a0ba
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edx, edx
jmp 0x439797
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0041efc0
add esp, 8
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push eax
call dword [0x45a200]
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0041efc0
add esp, 8
pop ebx
pop edi
mov eax, 0x38
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x45a200]
add esp, 4
pop ebx
pop edi
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
push edx
call dword [0x45a200]
add esp, 4
pop ebx
pop edi
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x45a200]
mov eax, dword [ebp - 0x18]
push eax
call dword [0x45a200]
add esp, 8
pop ebx
pop edi
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0041efc0
add esp, 8
pop ebx
pop edi
mov eax, 0x38
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0x2a
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebx + edi*4 + 0x154]
push ecx
push ebx
call fcn.00421780
add esp, 8
mov dword [ebx + edi*4 + 0x154], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x43a169
cmp dword [ebp - 0x20], 0
je 0x43a0f0
cmp dword [esi + 0x10c], 0
je 0x43a0f0
push str.Connect_me_again_please_n
push esi
mov dword [ebx + 0x228], 1
call fcn.0041ef40
jmp 0x43a131
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x43a10e
push eax
call dword [0x45a200]
add esp, 4
mov dword [esi + 0x10c], 0
mov dword [ebx + 0x1d0], 1
mov edx, dword [ebx + edi*4 + 0x154]
push edx
push ebx
call fcn.00421780
mov dword [ebx + edi*4 + 0x154], 0xffffffff
add esp, 8
mov dword [ebx + edi*4 + 0x4bc], 0
cmp dword [ebx + 0x228], 0
jne 0x43a1be
mov eax, dword [esi + 0xc8]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0041efc0
add esp, 0xc
pop ebx
pop edi
mov eax, 0x38
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebx + edi*4 + 0x4bc], 2
mov eax, dword [ebx + 0x258]
test eax, eax
je 0x43a192
push eax
call dword [0x45a200]
add esp, 4
xor edi, edi
mov dword [ebx + 0x258], edi
jmp 0x43a194
xor edi, edi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x258], edi
push esi
mov dword [esi + 0x8678], 1
call fcn.0041ef40
mov dword [esi + 0x100], edi
add esp, 8
mov dword [ebx + 0x20c], edi
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret