Function at 0x1004837b
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x2c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi + eax*4 + 0x1a8]
mov esi, dword [edi]
mov ebx, dword [edi + 0x778]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 8], eax
call fcn.10048d23
pop ecx
test eax, eax
je 0x100483b7
xor eax, eax
jmp 0x10048d1e
and dword [edi + 0x428], 0
mov dword [ebp - 0x1c], 0x100a73c5
mov dword [ebp - 0x14], 0x64
xor eax, eax
inc eax
cmp dword [ebx + 0x401c], 0
jne 0x10048619
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.100468bd
push dword [esi + 0x148]
call dword [0x100b5004]
and dword [esi + 0x148], 0
add esp, 0x14
call fcn.1004cb8a
mov dword [ebp + 8], eax
test eax, eax
je 0x10048bd9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_hu
call fcn.10051173
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10048be0
push 1
push eax
push str.CONNECT
push edi
call fcn.1004d60d
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
call dword [0x100b5004]
add esp, 0x14
cmp dword [ebp - 4], 0
jne 0x100485f7
and dword [ebp - 0x10], 0
cmp dword [edi + 0xf0], 1
mov edx, dword [edi + 0x3e8]
mov eax, 0x100a73c5
mov dword [ebp - 4], eax
mov eax, 0x10097bac
mov ecx, 0x10097bb0
cmovne eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0xa0]
je 0x1004849f
push 0x3a
push eax
call fcn.10074090
neg eax
sbb edx, edx
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
neg edx
push dword [ebp + 0x14]
test edx, edx
mov ecx, 0x100ab7a8
cmove ecx, dword [ebp - 0x1c]
push ecx
push eax
mov ecx, 0x100a73c5
mov eax, 0x100ab7a4
cmove eax, ecx
push eax
push str._s_s_s:_hu
call fcn.10051173
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10048be0
push str.Host:
push edi
call fcn.1004d06d
pop ecx
pop ecx
test eax, eax
jne 0x10048500
push dword [ebp - 0xc]
push str.Host:__s_r_n
call fcn.10051173
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10048bc6
push str.Proxy_Connection:
push edi
call fcn.1004d06d
test eax, eax
mov eax, 0x100a73c5
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
cmovne ecx, eax
push str.User_Agent:
push edi
mov dword [ebp - 0x20], ecx
call fcn.1004d06d
add esp, 0x10
test eax, eax
jne 0x10048540
cmp dword [esi + 0x4e4], eax
je 0x10048540
mov eax, dword [edi + 0x488]
mov dword [ebp - 4], eax
push dword [ebp - 0x20]
mov eax, dword [edi + 0x484]
push dword [ebp - 4]
mov edx, 0x100a73c5
test eax, eax
mov ecx, edx
cmovne ecx, eax
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, edx
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push dword [ebp + 8]
call fcn.1004cd2d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add esp, 0x20
test eax, eax
je 0x1004858c
push eax
call dword [0x100b5004]
pop ecx
push dword [ebp - 0xc]
call dword [0x100b5004]
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jne 0x100485e2
push dword [ebp + 8]
push 1
push edi
call fcn.1004cd89
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x100485e2
push 0x100ac5ac
push dword [ebp + 8]
call fcn.1004cd2d
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x100485e2
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x4b58]
push eax
push edi
push dword [ebp + 8]
call fcn.1004cb97
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp + 8], 0
test eax, eax
je 0x100485f7
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10046801
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.1004cb6b
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jne 0x10048d1e
inc eax
and dword [ebx + 0x4000], 0
mov dword [ebx + 0x401c], eax
push eax
push 0
push esi
call fcn.1004773e
add esp, 0xc
test edx, edx
jl 0x10048d0e
jg 0x10048637
test eax, eax
je 0x10048d0e
push dword [ebp + 0xc]
push edi
call fcn.10046f82
pop ecx
pop ecx
test eax, eax
je 0x100483b0
and dword [ebp + 8], 0
cmp dword [ebx + 0x4004], 0
je 0x10048b42
lea edx, [ebx + 0x4000]
mov eax, dword [ebx + 0x400c]
cmp eax, edx
jae 0x10048bf1
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
push dword [ebp - 0x28]
push edi
call fcn.10046930
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp eax, 0x51
je 0x100483b0
push edi
call fcn.1004f746
pop ecx
test eax, eax
jne 0x10048bea
cmp dword [ebp - 0x24], eax
jne 0x10048b3b
cmp dword [ebp - 0x18], eax
jle 0x10048afe
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x4004], ecx
jle 0x10048751
mov ecx, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
mov eax, ecx
or eax, edx
mov dword [ebx + 0x400c], ebx
je 0x10048718
sub ecx, 1
sbb edx, 0
mov dword [ebx + 0x4014], edx
xor edx, edx
mov dword [ebx + 0x4010], ecx
cmp dword [ebx + 0x4014], edx
jl 0x10048aec
jg 0x10048700
cmp ecx, edx
jbe 0x10048aec
lea edx, [ebx + 0x4000]
cmp dword [ebx + 0x4004], 0
jne 0x10048661
jmp 0x10048b42
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push edi
call fcn.100650bd
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10048700
push str.chunk_reading_DONE_n
push esi
call fcn.100468bd
and dword [ebx + 0x4004], 0
pop ecx
pop ecx
mov dword [ebx + 0x401c], 2
jmp 0x10048700
mov eax, dword [ebx + 0x400c]
lea edx, [ebx + 0x4000]
inc dword [edx]
cmp byte [eax], 0xa
je 0x1004876d
inc eax
mov dword [ebx + 0x400c], eax
jmp 0x10048706
cmp dword [esi + 0x3fc], 0
je 0x1004878f
push edi
push dword [edx]
push dword [ebx + 0x4008]
push ecx
push esi
call fcn.1004673d
add esp, 0x14
lea edx, [ebx + 0x4000]
cmp dword [esi + 0x59c], 0
jne 0x100487c8
cmp dword [esi + 0x3e4], 0
push 2
pop eax
push 3
pop ecx
push dword [edx]
cmovne eax, ecx
push dword [ebx + 0x4008]
push eax
push edi
call fcn.10046710
add esp, 0x10
test eax, eax
jne 0x10048d1e
lea edx, [ebx + 0x4000]
mov eax, dword [edx]
add dword [esi + 0x4b54], eax
mov eax, dword [edx]
add dword [esi + 0xa0], eax
mov ecx, dword [ebx + 0x4008]
mov al, byte [ecx]
cmp al, 0xd
je 0x100489ef
cmp al, 0xa
je 0x100489ef
mov eax, dword [edx]
push 0x11
mov byte [ecx + eax], 0
push dword [ebx + 0x4008]
push str.WWW_Authenticate:
call fcn.100508d6
add esp, 0xc
test eax, eax
je 0x1004881c
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x10048842
push 0x13
push dword [ebx + 0x4008]
push str.Proxy_authenticate:
call fcn.100508d6
add esp, 0xc
test eax, eax
je 0x1004888f
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x1004888f
push dword [ebx + 0x4008]
xor ecx, ecx
cmp eax, 0x197
sete cl
mov dword [ebp - 0x24], ecx
call fcn.1004d1b2
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10048bd9
push eax
push dword [ebp - 0x24]
push edi
call fcn.1004d3fa
push dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
call dword [0x100b5004]
mov eax, dword [ebp - 0x24]
add esp, 0x10
test eax, eax
jne 0x10048d1e
jmp 0x100489d5
push 0xf
push dword [ebx + 0x4008]
push str.Content_Length:
call fcn.100508d6
add esp, 0xc
test eax, eax
je 0x100488f1
mov ecx, dword [esi + 0xf8]
mov eax, ecx
cdq
idiv dword [ebp - 0x14]
cmp eax, 2
jne 0x100488ca
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.100468bd
jmp 0x1004897d
mov eax, dword [ebx + 0x4008]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.1007491a
add esp, 0xc
mov dword [ebx + 0x4010], eax
mov dword [ebx + 0x4014], edx
jmp 0x100489d5
push str.close
push str.Connection:
push dword [ebx + 0x4008]
call fcn.1004d10f
add esp, 0xc
test eax, eax
jne 0x1004899e
push 0x12
push dword [ebx + 0x4008]
push str.Transfer_Encoding:
call fcn.100508d6
add esp, 0xc
test eax, eax
je 0x10048982
mov ecx, dword [esi + 0xf8]
mov eax, ecx
cdq
idiv dword [ebp - 0x14]
cmp eax, 2
jne 0x10048946
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x100488bf
push str.chunked
push str.Transfer_Encoding:
push dword [ebx + 0x4008]
call fcn.1004d10f
add esp, 0xc
test eax, eax
je 0x100489d5
push str.CONNECT_responded_chunked_n
push esi
call fcn.100468bd
push edi
mov dword [ebx + 0x4018], 1
call fcn.100650aa
add esp, 0xc
jmp 0x100489d5
push str.close
push str.Proxy_Connection:
push dword [ebx + 0x4008]
call fcn.1004d10f
add esp, 0xc
test eax, eax
je 0x100489a6
xor eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x100489d5
lea eax, [esi + 0xf8]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.HTTP_1._d__d
push dword [ebx + 0x4008]
call fcn.10074000
add esp, 0x10
cmp eax, 2
jne 0x100489d5
mov eax, dword [esi + 0xf8]
mov dword [esi + 0x4b44], eax
lea edx, [ebx + 0x4000]
mov dword [ebx + 0x400c], ebx
and dword [edx], 0
mov dword [ebx + 0x4008], ebx
jmp 0x10048706
mov dword [ebx + 0x400c], ebx
cmp dword [esi + 0xf8], 0x197
jne 0x10048ae0
cmp dword [esi + 0x48c4], 0
jne 0x10048ae0
mov ecx, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
mov eax, ecx
or eax, edx
mov dword [ebx + 0x4004], 2
je 0x10048a65
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100468bd
add esp, 0x10
lea edx, [ebx + 0x4000]
mov eax, dword [ebx + 0x4010]
or eax, dword [ebx + 0x4014]
jne 0x10048706
mov dword [ebx + 0x401c], 2
jmp 0x10048706
cmp dword [ebx + 0x4018], 0
je 0x10048ad4
push str.Ignore_chunked_response_body_n
push esi
call fcn.100468bd
pop ecx
pop ecx
xor ecx, ecx
inc ecx
mov dword [esi + 0x13c], ecx
mov eax, dword [ebx + 0x4008]
inc eax
cmp byte [eax], 0xa
jne 0x10048a96
mov dword [ebx + 0x4008], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx + 0x4008]
push ecx
inc eax
push eax
push edi
call fcn.100650bd
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10048a3e
push str.chunk_reading_DONE_n
push esi
call fcn.100468bd
and dword [ebx + 0x4004], 0
pop ecx
pop ecx
mov dword [ebx + 0x401c], 2
jmp 0x10048a3e
and dword [ebx + 0x4004], 0
jmp 0x10048a3e
and dword [ebx + 0x4004], 0
jmp 0x10048a44
mov dword [ebx + 0x4004], edx
mov dword [ebx + 0x401c], 2
jmp 0x10048b42
cmp dword [esi + 0x190], 0
je 0x10048b27
cmp dword [esi + 0x48b4], 0
je 0x10048b27
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [edi + 0x428], 1
call fcn.100468bd
jmp 0x10048b39
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp + 8], 1
call fcn.10046801
pop ecx
pop ecx
and dword [ebx + 0x4004], 0
push edi
call fcn.1004f746
pop ecx
test eax, eax
jne 0x10048bea
cmp dword [ebp + 8], eax
jne 0x10048bfe
cmp dword [esi + 0x4b44], 0xc8
je 0x10048b8a
push edi
call fcn.1004d253
pop ecx
test eax, eax
jne 0x10048d1e
mov eax, dword [ebp - 8]
cmp dword [edi + 0x3c4], 0
push 1
pop ecx
cmovne eax, ecx
mov dword [ebp - 8], eax
jmp 0x10048b90
mov eax, dword [ebp - 8]
xor ecx, ecx
inc ecx
test eax, eax
je 0x10048b9d
cmp dword [esi + 0x148], 0
jne 0x10048c05
cmp dword [esi + 0x148], 0
je 0x10048c22
cmp dword [ebx + 0x401c], 2
jne 0x10048bb8
push ecx
push edi
call fcn.10048efb
pop ecx
pop ecx
cmp dword [esi + 0x148], 0
je 0x10048c22
jmp 0x100483cc
push dword [ebp - 0xc]
call dword [0x100b5004]
push dword [ebp + 8]
call fcn.1004cb6b
pop ecx
pop ecx
push 0x1b
jmp 0x10048d1d
push dword [ebp + 8]
call fcn.1004cb6b
jmp 0x10048bd8
push 0x2a
jmp 0x10048d1d
push str.CONNECT_response_too_large_
push esi
call fcn.10046801
pop ecx
pop ecx
push 0x38
jmp 0x10048d1d
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10046f2d
mov eax, dword [ebp + 0xc]
pop ecx
or dword [edi + eax*4 + 0x1a8], 0xffffffff
pop ecx
cmp dword [esi + 0xf8], 0xc8
je 0x10048cc7
mov eax, dword [ebp - 8]
test eax, eax
je 0x10048c61
cmp dword [esi + 0x148], 0
je 0x10048c61
xor eax, eax
inc eax
push str.Connect_me_again_please_n
push esi
mov dword [edi + 0x428], eax
call fcn.100468bd
push edi
call fcn.10048ed5
add esp, 0xc
jmp 0x10048c9a
push dword [esi + 0x148]
call dword [0x100b5004]
and dword [esi + 0x148], 0
push 2
push edi
call fcn.10047013
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10046f2d
mov eax, dword [ebp + 0xc]
add esp, 0x14
or dword [edi + eax*4 + 0x1a8], 0xffffffff
and dword [ebx + 0x401c], 0
cmp dword [edi + 0x428], 0
jne 0x100483b0
push dword [esi + 0xf8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10046801
add esp, 0xc
jmp 0x10048bfe
mov dword [ebx + 0x401c], 2
push dword [edi + 0x484]
call dword [0x100b5004]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [edi + 0x484], ebx
mov dword [esp], str.Proxy_replied_OK_to_CONNECT_request_n
push esi
mov dword [esi + 0x48b8], eax
call fcn.100468bd
pop ecx
mov dword [esi + 0x13c], ebx
pop ecx
mov dword [edi + 0x40c], ebx
jmp 0x100483b0
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10046801
pop ecx
pop ecx
push 0x1c
pop eax
pop edi
pop esi
pop ebx
leave
ret