Function at 0x1004ccf0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + eax*4 + 0x1a8]
mov ebx, dword [edi]
mov esi, dword [edi + 0x5c4]
xor ecx, ecx
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 8], ecx
call fcn.1004cbe0
add esp, 4
test eax, eax
jne 0x1004d782
mov dword [edi + 0x2e8], ecx
cmp dword [esi + 0x401c], 0
jne 0x1004cf9f
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edi
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebx
call fcn.1002fa90
mov ecx, dword [ebx + 0x148]
push ecx
call dword [0x100ab50c]
add esp, 0x14
mov dword [ebx + 0x148], 0
call fcn.10045f90
mov dword [ebp - 4], eax
test eax, eax
je 0x1004d5c7
mov edx, dword [ebp + 0x10]
push edi
push edx
push str._s:_hu
call fcn.10034900
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004d5bb
mov ecx, dword [ebp + 8]
push 1
push eax
push str.CONNECT
push ecx
call fcn.10045b90
mov edx, dword [ebp - 0xc]
push edx
mov edi, eax
call dword [0x100ab50c]
add esp, 0x14
test edi, edi
jne 0x1004cf78
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xf0], 1
mov eax, 0x10093510
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x10099d30
je 0x1004cde7
mov dword [ebp - 0x18], 0x10099d34
mov edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2a8]
cmp edi, dword [ecx + 0xa0]
je 0x1004ce09
push 0x3a
push edi
call fcn.10076210
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x1004ce19
mov ecx, 0x10094e10
mov eax, 0x10094df4
jmp 0x1004ce20
mov ecx, 0x10093510
mov eax, ecx
mov edx, dword [ebp + 0x14]
push edx
push ecx
push edi
push eax
push str._s_s_s:_hu
call fcn.10034900
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x1004d5d3
mov eax, dword [ebp + 8]
push str.Host:
push eax
call fcn.10045600
add esp, 8
test eax, eax
jne 0x1004ce6f
push edi
push str.Host:__s_r_n
call fcn.10034900
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004d5eb
mov edi, dword [ebp + 8]
push str.Proxy_Connection:
push edi
call fcn.10045600
add esp, 8
test eax, eax
jne 0x1004ce8b
mov dword [ebp - 0x10], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.10045600
add esp, 8
test eax, eax
jne 0x1004ceae
cmp dword [ebx + 0x658], eax
je 0x1004ceae
mov ecx, dword [edi + 0x348]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x344]
test ecx, ecx
jne 0x1004cebd
mov ecx, 0x10093510
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1004cec9
mov eax, 0x10093510
mov edx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ecx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.10046a40
add esp, 0x20
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x1004cf01
mov eax, dword [ebp - 0xc]
push eax
call dword [0x100ab50c]
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [0x100ab50c]
add esp, 4
test edi, edi
jne 0x1004cf5f
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
call fcn.10046b30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004cf5f
mov ecx, dword [ebp - 4]
push 0x100954f4
push ecx
call fcn.10046a40
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004cf5f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp - 4]
push eax
lea eax, [ebx + 0x4c68]
push eax
push ecx
push edx
call fcn.10045fd0
add esp, 0x14
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x1004cf78
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.1002fb10
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.10045fa0
add esp, 4
test edi, edi
jne 0x1004d60a
mov dword [esi + 0x4000], edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x401c], 1
push 1
push 0
push ebx
call fcn.10031b20
add esp, 0xc
test edx, edx
jl 0x1004d613
jg 0x1004cfbe
test eax, eax
je 0x1004d613
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.100326f0
add esp, 8
test eax, eax
je 0x1004d782
cmp dword [esi + 0x4004], 0
mov dword [ebp - 0x1c], 0
je 0x1004d0aa
jmp 0x1004cff0
mov eax, dword [esi + 0x400c]
lea ecx, [esi + 0x4000]
cmp eax, ecx
jae 0x1004d62d
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
push 1
push eax
mov eax, dword [ebp - 0x24]
push eax
push ecx
call fcn.1002f810
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x1004d782
mov edx, dword [ebp + 8]
push edx
call fcn.1004e7e0
add esp, 4
test eax, eax
jne 0x1004d647
test edi, edi
jne 0x1004d09d
cmp dword [ebp - 0x20], edi
jle 0x1004d527
cmp dword [esi + 0x4004], 1
jle 0x1004d14b
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x1004d10b
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x1004d093
jg 0x1004d515
test eax, eax
ja 0x1004d515
mov dword [esi + 0x401c], 2
mov dword [esi + 0x4004], 0
mov edi, dword [ebp + 8]
push edi
call fcn.1004e7e0
add esp, 4
test eax, eax
jne 0x1004d647
cmp dword [ebp - 0x1c], eax
jne 0x1004d63b
mov eax, 0x51eb851f
imul dword [ebx + 0x4c54]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x1004d573
push edi
call fcn.10046860
add esp, 4
test eax, eax
jne 0x1004d784
cmp dword [edi + 0x284], eax
je 0x1004d573
mov dword [ebp - 8], 1
jmp 0x1004d579
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push ecx
mov dword [ebp - 0x18], 0
call fcn.10057820
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004d515
push str.chunk_reading_DONE_n
push ebx
call fcn.1002fa90
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x1004d50b
inc dword [esi + 0x4000]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [esi + 0x4000]
je 0x1004d16e
inc eax
mov dword [esi + 0x400c], eax
jmp 0x1004d515
cmp dword [ebx + 0x570], 0
je 0x1004d18e
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x4008]
push edx
push ecx
push eax
push 1
push ebx
call fcn.1002f9b0
add esp, 0x14
cmp dword [ebx + 0x708], 0
jne 0x1004d1cd
cmp dword [ebx + 0x558], 0
mov eax, 2
je 0x1004d1aa
mov eax, 3
mov ecx, dword [esi + 0x4000]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.1002fed0
add esp, 0x10
test eax, eax
jne 0x1004d784
mov ecx, dword [esi + 0x4000]
add dword [ebx + 0x4c64], ecx
mov edx, dword [esi + 0x4000]
add dword [ebx + 0xa0], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x1004d438
cmp cl, 0xa
je 0x1004d438
mov ecx, dword [esi + 0x4000]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.1004bc00
add esp, 0xc
test eax, eax
je 0x1004d230
mov eax, dword [ebx + 0xf8]
cmp eax, 0x191
je 0x1004d257
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.1004bc00
add esp, 0xc
test eax, eax
je 0x1004d2ac
mov eax, dword [ebx + 0xf8]
cmp eax, 0x197
jne 0x1004d2ac
mov edx, dword [esi + 0x4008]
xor ecx, ecx
cmp eax, 0x197
sete cl
push edx
mov dword [ebp - 0x18], ecx
call fcn.10045670
mov edi, eax
add esp, 4
test edi, edi
je 0x1004d5c7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push edi
push eax
push ecx
call fcn.10045ca0
push edi
mov dword [ebp - 0x18], eax
call dword [0x100ab50c]
add esp, 0x10
cmp dword [ebp - 0x18], 0
je 0x1004d41d
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x4008]
push 0xf
push edx
push str.Content_Length:
call fcn.1004bc00
add esp, 0xc
test eax, eax
je 0x1004d318
mov ecx, dword [ebx + 0xf8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1004d2f6
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebx
call fcn.1002fa90
add esp, 0xc
jmp 0x1004d41d
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.100529f0
add esp, 0x10
jmp 0x1004d41d
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.10046270
add esp, 0xc
test eax, eax
je 0x1004d341
mov dword [ebp - 8], 1
jmp 0x1004d41d
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.1004bc00
add esp, 0xc
test eax, eax
je 0x1004d3cb
mov ecx, dword [ebx + 0xf8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1004d38b
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebx
call fcn.1002fa90
add esp, 0xc
jmp 0x1004d41d
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.10046270
add esp, 0xc
test eax, eax
je 0x1004d41d
push str.CONNECT_responded_chunked_n
push ebx
call fcn.1002fa90
mov edx, dword [ebp + 8]
push edx
mov dword [esi + 0x4018], 1
call fcn.10057800
add esp, 0xc
jmp 0x1004d41d
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.10046270
add esp, 0xc
test eax, eax
je 0x1004d3f1
mov dword [ebp - 8], 1
jmp 0x1004d41d
mov edx, dword [esi + 0x4008]
lea edi, [ebx + 0xf8]
push edi
lea ecx, [ebp - 0x28]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.10072408
add esp, 0x10
cmp eax, 2
jne 0x1004d41d
mov eax, dword [edi]
mov dword [ebx + 0x4c54], eax
mov dword [esi + 0x4000], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x1004d515
mov dword [esi + 0x400c], esi
cmp dword [ebx + 0xf8], 0x197
jne 0x1004d4f3
cmp dword [ebx + 0x49d4], 0
jne 0x1004d4f3
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x4004], 2
je 0x1004d489
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebx
call fcn.1002fa90
add esp, 0x10
jmp 0x1004d4fd
cmp dword [esi + 0x4018], 0
je 0x1004d4f3
push str.Ignore_chunked_response_body_n
push ebx
call fcn.1002fa90
mov dword [ebx + 0x13c], 1
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x1004d4bc
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.10057820
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004d4fd
push str.chunk_reading_DONE_n
push ebx
call fcn.1002fa90
add esp, 8
mov dword [esi + 0x401c], 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x1004d515
mov dword [esi + 0x401c], 2
cmp dword [esi + 0x4004], 0
jne 0x1004cff0
jmp 0x1004d0a7
cmp dword [ebx + 0x190], 0
je 0x1004d559
cmp dword [ebx + 0x49c4], 0
je 0x1004d559
mov ecx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push ebx
mov dword [ecx + 0x2e8], 1
call fcn.1002fa90
add esp, 8
jmp 0x1004d09d
push str.Proxy_CONNECT_aborted
push ebx
mov dword [ebp - 0x1c], 1
call fcn.1002fb10
add esp, 8
jmp 0x1004d09d
cmp dword [ebp - 8], 0
je 0x1004d586
cmp dword [ebx + 0x148], 0
jne 0x1004d653
cmp dword [ebx + 0x148], 0
je 0x1004d675
cmp dword [esi + 0x401c], 2
jne 0x1004d5a9
mov edi, dword [ebp + 8]
push 1
call fcn.1004cc40
add esp, 4
cmp dword [ebx + 0x148], 0
jne 0x1004cd30
jmp 0x1004d675
mov ecx, dword [ebp - 4]
push ecx
call fcn.10045fa0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call fcn.10045fa0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x100ab50c]
mov eax, dword [ebp - 4]
push eax
call fcn.10045fa0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.1002fb10
add esp, 8
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push ebx
call fcn.1002fb10
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + ecx*4 + 0x1a8]
push edx
push edi
call fcn.10032570
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [edi + eax*4 + 0x1a8], 0xffffffff
mov eax, 0x51eb851f
imul dword [ebx + 0x4c54]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x1004d738
cmp dword [ebp - 8], 0
je 0x1004d6c3
cmp dword [ebx + 0x148], 0
je 0x1004d6c3
push str.Connect_me_again_please_n
push ebx
mov dword [edi + 0x2e8], 1
call fcn.1002fa90
add esp, 8
mov eax, edi
call fcn.1004ccc0
jmp 0x1004d704
mov edx, dword [ebx + 0x148]
push edx
call dword [0x100ab50c]
push 2
push edi
mov dword [ebx + 0x148], 0
call fcn.100326a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + eax*4 + 0x1a8]
push ecx
push edi
call fcn.10032570
mov edx, dword [ebp + 0xc]
add esp, 0x14
mov dword [edi + edx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x401c], 0
cmp dword [edi + 0x2e8], 0
jne 0x1004d782
mov eax, dword [ebx + 0xf8]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.1002fb10
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x401c], 2
mov ecx, dword [edi + 0x344]
push ecx
call dword [0x100ab50c]
xor esi, esi
mov dword [edi + 0x344], esi
mov edx, dword [ebx + 0x4c54]
push edx
push str.Proxy_replied__d_to_CONNECT_request_n
push ebx
mov dword [ebx + 0x49c8], 1
call fcn.1002fa90
mov dword [ebx + 0x13c], esi
add esp, 0x10
mov dword [edi + 0x2cc], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret