Function at 0x4b24e0
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 + 0x744]
xor ecx, ecx
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
call fcn.004b23f0
add esp, 4
test eax, eax
jne 0x4b2faf
mov dword [edi + 0x588], ecx
cmp dword [esi + 0x4018], 0
jne 0x4b2796
mov edi, dword [esp + 0x44]
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.00489260
mov eax, dword [ebp + 0x140]
push eax
call dword [0x618914]
add esp, 0x14
mov dword [ebp + 0x140], 0
call fcn.004a8df0
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b2de1
push ebx
push edi
push str._s:_d
call fcn.00491b50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4b2dd4
mov ecx, dword [esp + 0x3c]
push 1
push ebx
push str.CONNECT
push ecx
call fcn.004a89f0
push ebx
mov edi, eax
call dword [0x618914]
add esp, 0x14
test edi, edi
jne 0x4b276d
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x3c]
cmp dword [edi + 0x358], 1
mov eax, 0x59fa81
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x5b4284
je 0x4b25d9
mov dword [esp + 0x20], 0x5b4288
mov ebx, dword [esp + 0x44]
mov eax, dword [edi + 0x554]
cmp ebx, dword [edi + 0x304]
je 0x4b25fd
push 0x3a
push ebx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4b260d
mov ecx, 0x5ae810
mov eax, 0x5ae804
jmp 0x4b2614
mov ecx, 0x59fa81
mov eax, ecx
mov edx, dword [esp + 0x48]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.00491b50
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4b2dee
push str.Host
push edi
call fcn.004a83d0
add esp, 8
test eax, eax
jne 0x4b265f
push ebx
push str.Host:__s_r_n
call fcn.00491b50
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4b2e08
push str.Proxy_Connection
push edi
call fcn.004a83d0
add esp, 8
test eax, eax
jne 0x4b2679
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
call fcn.004a83d0
add esp, 8
test eax, eax
jne 0x4b269d
cmp dword [ebp + 0xa3c], eax
je 0x4b269d
mov eax, dword [edi + 0x5f8]
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x5f4]
mov ecx, edi
test edi, edi
jne 0x4b26ae
mov ecx, 0x59fa81
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b26bb
mov eax, 0x59fa81
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.004a9990
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x4b26f6
mov edx, dword [esp + 0x14]
push edx
call dword [0x618914]
add esp, 4
push ebx
call dword [0x618914]
add esp, 4
test edi, edi
jne 0x4b2753
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
push eax
push 1
push ebx
call fcn.004a9c00
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4b2753
lea ecx, [esp + 0x10]
push 0x5af160
push ecx
call fcn.004a9990
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b2753
mov edx, dword [esp + 0x40]
push edx
push eax
lea eax, [ebp + 0x1208]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.004a8e30
add esp, 0x14
mov edi, eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x4b276d
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.00489340
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.004a8e00
add esp, 4
test edi, edi
jne 0x4b2e29
mov dword [esi + 0x4000], edi
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x4018], 1
push 1
push 0
push ebp
call fcn.0048d7b0
add esp, 0xc
test edx, edx
jl 0x4b2e33
jg 0x4b27b5
test eax, eax
jbe 0x4b2e33
mov eax, dword [esp + 0x40]
push eax
push edi
call fcn.0048e650
add esp, 8
test eax, eax
je 0x4b2faf
cmp dword [esi + 0x4004], 0
mov dword [esp + 0x20], 0
je 0x4b28aa
lea ebx, [esi + 0x4000]
jmp 0x4b27f0
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x4b2e4e
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.00489160
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4b2faf
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00497950
add esp, 4
test eax, eax
jne 0x4b2e69
test edi, edi
jne 0x4b289c
cmp dword [esp + 0x24], edi
jle 0x4b2d86
cmp dword [esi + 0x4004], 1
jle 0x4b29a6
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x4b2954
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x4b2892
jg 0x4b2d74
test eax, eax
ja 0x4b2d74
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov edi, dword [esp + 0x3c]
push edi
call fcn.00497950
add esp, 4
test eax, eax
jne 0x4b2e69
cmp dword [esp + 0x20], eax
jne 0x4b2e5c
mov ecx, dword [ebp + 0x11ec]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4b2904
push edi
call fcn.004a9760
add esp, 4
test eax, eax
jne 0x4b2fb1
cmp dword [edi + 0x52c], eax
je 0x4b2904
mov dword [esi + 0x4020], 1
cmp dword [esi + 0x4020], 0
je 0x4b291a
cmp dword [ebp + 0x140], 0
jne 0x4b2e76
cmp dword [ebp + 0x140], 0
je 0x4b2e98
cmp dword [esi + 0x4018], 2
jne 0x4b293e
mov edi, dword [esp + 0x3c]
push 1
call fcn.004b2430
add esp, 4
cmp dword [ebp + 0x140], 0
je 0x4b2e98
mov ebx, dword [esp + 0x48]
jmp 0x4b2523
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.004b7eb0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4b2d74
push str.chunk_reading_DONE_n
push ebp
call fcn.00489260
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x4b2d74
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x4b29c1
inc eax
mov dword [esi + 0x400c], eax
jmp 0x4b2d74
cmp dword [ebp + 0xbbc], 0
je 0x4b29dd
mov eax, dword [esi + 0x4008]
push ecx
push eax
push 1
push ebp
call fcn.004891d0
add esp, 0x10
cmp dword [ebp + 0xc08], 0
jne 0x4b2a19
cmp dword [ebp + 0xba8], 0
mov eax, 2
je 0x4b29f9
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.004897a0
add esp, 0x10
test eax, eax
jne 0x4b2fb1
mov eax, dword [ebx]
cdq
add dword [ebp + 0x1200], eax
adc dword [ebp + 0x1204], 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 0x4b2c8d
cmp cl, 0xa
je 0x4b2c8d
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.0048fc30
add esp, 0xc
test eax, eax
je 0x4b2a7e
mov eax, dword [ebp + 0x100]
cmp eax, 0x191
je 0x4b2aa5
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.0048fc30
add esp, 0xc
test eax, eax
je 0x4b2af2
mov eax, dword [ebp + 0x100]
cmp eax, 0x197
jne 0x4b2af2
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.004a8450
mov edi, eax
add esp, 4
test edi, edi
je 0x4b2de1
mov edx, dword [esp + 0x3c]
push edi
push ebx
push edx
call fcn.004a8b00
push edi
mov ebx, eax
call dword [0x618914]
add esp, 0x10
test ebx, ebx
je 0x4b2c70
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.0048fc30
add esp, 0xc
test eax, eax
je 0x4b2b5e
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 0x4b2b3c
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.00489260
add esp, 0xc
jmp 0x4b2c70
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.004b6410
add esp, 0x10
jmp 0x4b2c70
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.004a9110
add esp, 0xc
test eax, eax
je 0x4b2b8a
mov dword [esi + 0x4020], 1
jmp 0x4b2c70
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.0048fc30
add esp, 0xc
test eax, eax
je 0x4b2c19
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 0x4b2bd4
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.00489260
add esp, 0xc
jmp 0x4b2c70
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.004a9110
add esp, 0xc
test eax, eax
je 0x4b2c70
push str.CONNECT_responded_chunked_n
push ebp
call fcn.00489260
mov edx, dword [esp + 0x44]
push edx
mov dword [esi + 0x401c], 1
call fcn.004b7e90
add esp, 0xc
jmp 0x4b2c70
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.004a9110
add esp, 0xc
test eax, eax
je 0x4b2c42
mov dword [esi + 0x4020], 1
jmp 0x4b2c70
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.MSVCR90.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x4b2c70
mov eax, dword [edi]
mov dword [ebp + 0x11ec], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x4b2d74
mov dword [esi + 0x400c], esi
cmp dword [ebp + 0x100], 0x197
jne 0x4b2d51
cmp dword [ebp + 0x1190], 0
jne 0x4b2d51
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 0x4b2ce2
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.00489260
add esp, 0x10
jmp 0x4b2d60
cmp dword [esi + 0x401c], 0
je 0x4b2d56
push str.Ignore_chunked_response_body_n
push ebp
call fcn.00489260
mov dword [ebp + 0x594], 1
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x4b2d15
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
inc edx
push edx
push eax
call fcn.004b7eb0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4b2d60
push str.chunk_reading_DONE_n
push ebp
call fcn.00489260
add esp, 8
mov dword [esi + 0x4018], edi
jmp 0x4b2d56
mov edi, 2
mov dword [esi + 0x4004], 0
mov ecx, dword [esi + 0x4010]
or ecx, dword [esi + 0x4014]
jne 0x4b2d74
mov dword [esi + 0x4018], edi
cmp dword [esi + 0x4004], 0
jne 0x4b27f0
jmp 0x4b28a6
cmp dword [ebp + 0x5d8], 0
je 0x4b2db9
cmp dword [ebp + 0xec8], 0
je 0x4b2db9
mov edx, dword [esp + 0x3c]
push str.Proxy_CONNECT_connection_closed_n
push ebp
mov dword [edx + 0x588], 1
call fcn.00489260
add esp, 8
jmp 0x4b289c
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x28], 1
call fcn.00489340
add esp, 8
jmp 0x4b289c
lea ecx, [esp + 0x10]
push ecx
call fcn.004a8e00
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.004a8e00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
push ebx
call dword [0x618914]
lea eax, [esp + 0x14]
push eax
call fcn.004a8e00
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.00489340
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.00489340
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.0048e440
add esp, 8
mov dword [edi + ebx*4 + 0x420], 0xffffffff
jmp 0x4b2e9c
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebp + 0x11ec]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4b2f5f
cmp dword [esi + 0x4020], 0
je 0x4b2eef
cmp dword [ebp + 0x140], 0
je 0x4b2eef
push str.Connect_me_again_please_n
push ebp
mov dword [edi + 0x588], 1
call fcn.00489260
add esp, 8
mov eax, edi
call fcn.004b24b0
jmp 0x4b2f2a
mov ecx, dword [ebp + 0x140]
push ecx
call dword [0x618914]
push 2
push edi
mov dword [ebp + 0x140], 0
call fcn.0048e600
mov edx, dword [edi + ebx*4 + 0x420]
push edx
push edi
call fcn.0048e440
add esp, 0x14
mov dword [edi + ebx*4 + 0x420], 0xffffffff
mov dword [esi + 0x4018], 0
cmp dword [edi + 0x588], 0
jne 0x4b2faf
mov eax, dword [ebp + 0x100]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.00489340
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 + 0x5f4]
push ecx
call dword [0x618914]
xor esi, esi
mov dword [edi + 0x5f4], esi
mov edx, dword [ebp + 0x11ec]
push edx
push str.Proxy_replied__d_to_CONNECT_request_n
push ebp
mov dword [ebp + 0xecc], 1
mov dword [ebp + 0xed0], esi
call fcn.00489260
mov dword [ebp + 0x594], esi
add esp, 0x10
mov dword [edi + 0x570], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret