Function at 0x486440
Capabilities:
Check http status code

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov edx, dword [edi + eax*4 + 0x420]
mov ebp, dword [edi]
mov esi, dword [edi + 0x73c]
xor ecx, ecx
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
call fcn.00486350
add esp, 4
test eax, eax
jne 0x486f16
mov dword [edi + 0x580], ecx
cmp dword [esi + 0x4018], 0
jne 0x4866f6
mov edi, dword [esp + 0x44]
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.0045c170
mov eax, dword [ebp + 0x140]
push eax
call dword [0x5d203c]
add esp, 0x14
mov dword [ebp + 0x140], 0
call fcn.0047cdf0
test eax, eax
mov dword [esp + 0x10], eax
je 0x486d48
push ebx
push edi
push str._s:_d
call fcn.00465bb0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x486d3b
mov ecx, dword [esp + 0x3c]
push 1
push ebx
push str.CONNECT
push ecx
call fcn.0047c9e0
push ebx
mov edi, eax
call dword [0x5d203c]
add esp, 0x14
test edi, edi
jne 0x4866cd
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x3c]
cmp dword [edi + 0x358], 1
mov eax, 0x5c38ea
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x5c6084
je 0x486539
mov dword [esp + 0x20], 0x58074c
mov ebx, dword [esp + 0x44]
cmp ebx, dword [edi + 0x304]
mov eax, dword [edi + 0x54c]
je 0x48655d
push 0x3a
push ebx
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x48656d
mov ecx, 0x57aea0
mov eax, 0x57ae94
jmp 0x486574
mov ecx, 0x5c38ea
mov eax, ecx
mov edx, dword [esp + 0x48]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.00465bb0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x486d55
push str.Host
push edi
call fcn.0047c3b0
add esp, 8
test eax, eax
jne 0x4865bf
push ebx
push str.Host:__s_r_n
call fcn.00465bb0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x486d6f
push str.Proxy_Connection
push edi
call fcn.0047c3b0
add esp, 8
test eax, eax
jne 0x4865d9
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
call fcn.0047c3b0
add esp, 8
test eax, eax
jne 0x4865fd
cmp dword [ebp + 0xa34], eax
je 0x4865fd
mov eax, dword [edi + 0x5f0]
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x5ec]
test edi, edi
mov ecx, edi
jne 0x48660e
mov ecx, 0x5c38ea
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x48661b
mov eax, 0x5c38ea
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.0047d9d0
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x486656
mov edx, dword [esp + 0x14]
push edx
call dword [0x5d203c]
add esp, 4
push ebx
call dword [0x5d203c]
add esp, 4
test edi, edi
jne 0x4866b3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
push eax
push 1
push ebx
call fcn.0047dc50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4866b3
lea ecx, [esp + 0x10]
push 0x5c5f1c
push ecx
call fcn.0047d9d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4866b3
mov edx, dword [esp + 0x40]
push edx
push eax
lea eax, [ebp + 0x1200]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0047ce30
add esp, 0x14
mov edi, eax
test edi, edi
mov dword [esp + 0x10], 0
je 0x4866cd
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.0045c260
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.0047ce00
add esp, 4
test edi, edi
jne 0x486d90
mov dword [esi + 0x4000], edi
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x4018], 1
push 1
push 0
push ebp
call fcn.00460dc0
add esp, 0xc
test edx, edx
jl 0x486d9a
jg 0x486715
test eax, eax
jbe 0x486d9a
mov eax, dword [esp + 0x40]
push eax
push edi
call fcn.00461bb0
add esp, 8
test eax, eax
je 0x486f16
cmp dword [esi + 0x4004], 0
mov dword [esp + 0x20], 0
je 0x48680a
lea ebx, [esi + 0x4000]
jmp 0x486750
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x486db5
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.0045c070
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x486f16
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0046b210
add esp, 4
test eax, eax
jne 0x486dd0
test edi, edi
jne 0x4867fc
cmp dword [esp + 0x24], edi
jle 0x486ced
cmp dword [esi + 0x4004], 1
jle 0x486906
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x4868b4
sub eax, 1
sbb ecx, edi
test ecx, ecx
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
jl 0x4867f2
jg 0x486cdb
test eax, eax
ja 0x486cdb
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov edi, dword [esp + 0x3c]
push edi
call fcn.0046b210
add esp, 4
test eax, eax
jne 0x486dd0
cmp dword [esp + 0x20], eax
jne 0x486dc3
mov ecx, dword [ebp + 0x11e4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x486864
push edi
call fcn.0047d7a0
add esp, 4
test eax, eax
jne 0x486f18
cmp dword [edi + 0x524], eax
je 0x486864
mov dword [esi + 0x4020], 1
cmp dword [esi + 0x4020], 0
je 0x48687a
cmp dword [ebp + 0x140], 0
jne 0x486ddd
cmp dword [ebp + 0x140], 0
je 0x486dff
cmp dword [esi + 0x4018], 2
jne 0x48689e
mov edi, dword [esp + 0x3c]
push 1
call fcn.00486390
add esp, 4
cmp dword [ebp + 0x140], 0
je 0x486dff
mov ebx, dword [esp + 0x48]
jmp 0x486483
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push esi
push edx
mov dword [esp + 0x30], 0
call fcn.0048b9e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x486cdb
push str.chunk_reading_DONE_n
push ebp
call fcn.0045c170
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x486cdb
add dword [ebx], 1
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x486924
add eax, 1
mov dword [esi + 0x400c], eax
jmp 0x486cdb
cmp dword [ebp + 0xbb4], 0
je 0x486940
mov eax, dword [esi + 0x4008]
push ecx
push eax
push 1
push ebp
call fcn.0045c0e0
add esp, 0x10
cmp dword [ebp + 0xc00], 0
jne 0x48697c
cmp dword [ebp + 0xba0], 0
mov eax, 2
je 0x48695c
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.0045c6c0
add esp, 0x10
test eax, eax
jne 0x486f18
mov eax, dword [ebx]
cdq
add dword [ebp + 0x11f8], eax
adc dword [ebp + 0x11fc], edx
mov eax, dword [ebx]
cdq
add dword [ebp + 0xa8], eax
adc dword [ebp + 0xac], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x486bf0
cmp cl, 0xa
je 0x486bf0
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.00463190
add esp, 0xc
test eax, eax
je 0x4869e1
mov eax, dword [ebp + 0x100]
cmp eax, 0x191
je 0x486a08
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.00463190
add esp, 0xc
test eax, eax
je 0x486a55
mov eax, dword [ebp + 0x100]
cmp eax, 0x197
jne 0x486a55
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.0047c430
mov edi, eax
add esp, 4
test edi, edi
je 0x486d48
mov edx, dword [esp + 0x3c]
push edi
push ebx
push edx
call fcn.0047caf0
push edi
mov ebx, eax
call dword [0x5d203c]
add esp, 0x10
test ebx, ebx
je 0x486bd3
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.00463190
add esp, 0xc
test eax, eax
je 0x486ac1
mov ecx, dword [ebp + 0x100]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x486a9f
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.0045c170
add esp, 0xc
jmp 0x486bd3
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.0048a190
add esp, 0x10
jmp 0x486bd3
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.0047d130
add esp, 0xc
test eax, eax
je 0x486aed
mov dword [esi + 0x4020], 1
jmp 0x486bd3
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.00463190
add esp, 0xc
test eax, eax
je 0x486b7c
mov ecx, dword [ebp + 0x100]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x486b37
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.0045c170
add esp, 0xc
jmp 0x486bd3
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.0047d130
add esp, 0xc
test eax, eax
je 0x486bd3
push str.CONNECT_responded_chunked_n
push ebp
call fcn.0045c170
mov edx, dword [esp + 0x44]
push edx
mov dword [esi + 0x401c], 1
call fcn.0048b9c0
add esp, 0xc
jmp 0x486bd3
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.0047d130
add esp, 0xc
test eax, eax
je 0x486ba5
mov dword [esi + 0x4020], 1
jmp 0x486bd3
mov edx, dword [esi + 0x4008]
lea edi, [ebp + 0x100]
push edi
lea ecx, [esp + 0x30]
push ecx
push str.HTTP_1._d__d
push edx
call dword [sym.imp.MSVCR80.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x486bd3
mov eax, dword [edi]
mov dword [ebp + 0x11e4], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x486cdb
mov dword [esi + 0x400c], esi
cmp dword [ebp + 0x100], 0x197
jne 0x486cb8
cmp dword [ebp + 0x1188], 0
jne 0x486cb8
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov edi, 2
mov dword [esi + 0x4004], edi
je 0x486c45
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.0045c170
add esp, 0x10
jmp 0x486cc7
cmp dword [esi + 0x401c], 0
je 0x486cbd
push str.Ignore_chunked_response_body_n
push ebp
call fcn.0045c170
mov dword [ebp + 0x594], 1
mov eax, dword [esi + 0x4008]
add eax, 1
add esp, 8
cmp byte [eax], 0xa
jne 0x486c7a
mov dword [esi + 0x4008], eax
mov edx, dword [esi + 0x4008]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push ecx
push 1
add edx, 1
push edx
push eax
call fcn.0048b9e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x486cc7
push str.chunk_reading_DONE_n
push ebp
call fcn.0045c170
add esp, 8
mov dword [esi + 0x4018], edi
jmp 0x486cbd
mov edi, 2
mov dword [esi + 0x4004], 0
mov ecx, dword [esi + 0x4010]
or ecx, dword [esi + 0x4014]
jne 0x486cdb
mov dword [esi + 0x4018], edi
cmp dword [esi + 0x4004], 0
jne 0x486750
jmp 0x486806
cmp dword [ebp + 0x5d8], 0
je 0x486d20
cmp dword [ebp + 0xec0], 0
je 0x486d20
mov edx, dword [esp + 0x3c]
push str.Proxy_CONNECT_connection_closed_n
push ebp
mov dword [edx + 0x580], 1
call fcn.0045c170
add esp, 8
jmp 0x4867fc
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x28], 1
call fcn.0045c260
add esp, 8
jmp 0x4867fc
lea ecx, [esp + 0x10]
push ecx
call fcn.0047ce00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
lea edx, [esp + 0x10]
push edx
call fcn.0047ce00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
push ebx
call dword [0x5d203c]
lea eax, [esp + 0x14]
push eax
call fcn.0047ce00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.0045c260
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x28
ret
push str.CONNECT_response_too_large_
push ebp
call fcn.0045c260
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x40]
mov ecx, dword [edi + ebx*4 + 0x420]
push ecx
push edi
call fcn.004619b0
add esp, 8
mov dword [edi + ebx*4 + 0x420], 0xffffffff
jmp 0x486e03
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebp + 0x11e4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x486ec6
cmp dword [esi + 0x4020], 0
je 0x486e56
cmp dword [ebp + 0x140], 0
je 0x486e56
push str.Connect_me_again_please_n
push ebp
mov dword [edi + 0x580], 1
call fcn.0045c170
add esp, 8
mov eax, edi
call fcn.00486410
jmp 0x486e91
mov ecx, dword [ebp + 0x140]
push ecx
call dword [0x5d203c]
push 2
push edi
mov dword [ebp + 0x140], 0
call fcn.00461b60
mov edx, dword [edi + ebx*4 + 0x420]
push edx
push edi
call fcn.004619b0
add esp, 0x14
mov dword [edi + ebx*4 + 0x420], 0xffffffff
mov dword [esi + 0x4018], 0
cmp dword [edi + 0x580], 0
jne 0x486f16
mov eax, dword [ebp + 0x100]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.0045c260
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x28
ret
mov dword [esi + 0x4018], 2
mov ecx, dword [edi + 0x5ec]
push ecx
call dword [0x5d203c]
xor esi, esi
mov dword [edi + 0x5ec], esi
mov edx, dword [ebp + 0x11e4]
push edx
push str.Proxy_replied__d_to_CONNECT_request_n
push ebp
mov dword [ebp + 0xec4], 1
mov dword [ebp + 0xec8], esi
call fcn.0045c170
mov dword [ebp + 0x594], esi
add esp, 0x10
mov dword [edi + 0x568], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret