Function at 0x442210
Capabilities:
Check http status code

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [eax + 0x500]
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x442710
mov esi, dword [ebx + 0x4018]
cmp esi, 2
je 0x442710
mov edi, dword [eax]
mov ebp, eax
lea eax, [eax + edx*4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 0x1a0]
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x4000]
and byte [ebp + 0x27e], 0x7f
mov dword [esp + 0x30], eax
test esi, esi
jne 0x442542
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x38]
mov dword [esp + 4], str.Establish_HTTP_proxy_tunnel_to__s:_d_n
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
call fcn.0045fe80
mov eax, dword [edi + 0x124]
mov dword [esp], eax
call dword [0x53638c]
mov dword [edi + 0x124], 0
call fcn.0045b660
test eax, eax
mov dword [esp + 0x5c], eax
je 0x442a99
mov eax, dword [esp + 0x80]
mov dword [esp + 4], esi
mov dword [esp], str._s:_d
mov dword [esp + 8], eax
call fcn.00468fa0
test eax, eax
mov esi, eax
je 0x442a8d
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.CONNECT
mov dword [esp], ebp
call fcn.0045ac70
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call dword [0x53638c]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x442a20
cmp dword [ebp + 0xf0], 1
mov edx, 0x5e4b6c
mov eax, 0x5e4b68
mov ecx, dword [esp + 0x38]
cmovne eax, edx
mov dword [esp + 0x48], eax
movzx eax, byte [ebp + 0x27d]
shr al, 1
and eax, 1
cmp dword [ebp + 0x9c], ecx
je 0x442362
mov dword [esp + 4], 0x3a
mov dword [esp], ecx
call sub.msvcrt.dll_strchr
test eax, eax
setne al
test al, al
mov ecx, 0x5e4b74
mov edx, 0x5e4b70
cmove edx, ecx
mov eax, 0x5e4b72
mov dword [esp], str._s_s_s:_d
cmove eax, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
call fcn.00468fa0
test eax, eax
mov dword [esp + 0x40], eax
je 0x442a8d
mov dword [esp + 4], 0x5e4bd6
mov dword [esp], ebp
call fcn.0045a670
test eax, eax
mov dword [esp + 0x2c], 0
je 0x442a60
mov dword [esp + 4], 0x5e4be6
mov dword [esp], ebp
mov esi, 0x5e4b78
call fcn.0045a670
mov dword [esp + 4], 0x5e4bf7
test eax, eax
mov dword [esp], ebp
mov eax, 0x5e4b74
cmovne esi, eax
call fcn.0045a670
test eax, eax
mov edx, 0x5e4b74
je 0x442ae0
mov eax, dword [ebp + 0x2b0]
mov ecx, 0x5e4b74
test eax, eax
cmove eax, ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x442aa3
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 0x10], eax
call fcn.0045ba70
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [0x53638c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [0x53638c]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4424c0
mov edi, eax
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov dword [esp], eax
call fcn.00460000
mov dword [esp], esi
call fcn.0045b680
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 1
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.0045be90
test eax, eax
jne 0x44248a
mov dword [esp + 4], 0x5e4c02
mov dword [esp], esi
call fcn.0045ba70
test eax, eax
jne 0x44248a
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 0x10], eax
lea eax, [edi + 0xe48]
mov dword [esp + 8], eax
call fcn.0045b6c0
test eax, eax
mov dword [esp + 0x5c], 0
jne 0x442f97
mov dword [esp], esi
call fcn.0045b680
mov dword [ebx + 0x4018], 1
mov dword [ebx + 0x4000], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00437100
test eax, eax
jle 0x442d11
mov eax, dword [esp + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004391a0
test al, al
je 0x442710
mov ecx, dword [ebx + 0x4004]
mov dword [esp + 0x2c], edi
test ecx, ecx
je 0x442f8e
mov eax, dword [ebx + 0x400c]
cmp eax, dword [esp + 0x30]
jae 0x442be0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x58]
mov dword [esp + 0xc], 1
mov dword [esp], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call fcn.00460e20
cmp eax, 0x51
mov esi, eax
je 0x442710
mov dword [esp], ebp
call fcn.004567e0
test eax, eax
jne 0x442988
test esi, esi
jne 0x442c00
mov ecx, dword [esp + 0x58]
test ecx, ecx
jle 0x442c23
mov ecx, dword [ebx + 0x4004]
cmp ecx, 1
jle 0x442720
mov edx, dword [ebx + 0x4014]
mov eax, dword [ebx + 0x4010]
mov dword [ebx + 0x400c], ebx
mov edi, edx
or edi, eax
je 0x442923
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [ebx + 0x4010], eax
cmp edx, 0
mov dword [ebx + 0x4014], edx
jg 0x442584
jl 0x442640
cmp eax, 0
ja 0x442584
mov dword [ebx + 0x4004], 0
mov dword [ebx + 0x4018], 2
mov dword [esp], ebp
mov edi, dword [esp + 0x2c]
call fcn.004567e0
test eax, eax
jne 0x442988
mov eax, dword [edi + 0xe34]
sub eax, 0xc8
cmp eax, 0x63
ja 0x4429f0
test byte [ebx + 0x401c], 2
mov eax, dword [edi + 0x124]
je 0x4428c0
test eax, eax
jne 0x442df6
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xe34]
mov dword [esp + 0x2c], eax
sub eax, 0xc8
cmp eax, 0x63
ja 0x442f87
mov eax, dword [ebp + 0x2b0]
mov dword [ebx + 0x4018], 2
mov dword [esp], eax
call dword [0x53638c]
mov edi, dword [esp + 0x44]
mov dword [ebp + 0x2b0], 0
mov eax, dword [edi + 0xe34]
or byte [edi + 0xc4c], 1
mov dword [esp + 4], str.Proxy_replied__d_to_CONNECT_request_n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0045fe80
and byte [edi + 0x56c], 0xf7
and byte [ebp + 0x27e], 0xfe
lea esi, [esi]
xor edi, edi
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x4000]
lea esi, [eax + 1]
mov eax, dword [ebx + 0x400c]
mov dword [ebx + 0x4000], esi
cmp byte [eax], 0xa
je 0x442750
add eax, 1
mov dword [ebx + 0x400c], eax
jmp 0x442584
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x4008]
test byte [eax + 0xa6f], 0x40
jne 0x442a30
test byte [eax + 0xa72], 4
jne 0x4427a8
test byte [eax + 0xa6f], 2
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp], ebp
setne al
movzx eax, al
add eax, 2
mov dword [esp + 4], eax
call fcn.004608b0
test eax, eax
jne 0x442b56
mov esi, dword [ebx + 0x4000]
mov ecx, dword [ebx + 0x4008]
mov edi, dword [esp + 0x2c]
mov eax, esi
cdq
add dword [edi + 0xe40], esi
adc dword [edi + 0xe44], edx
add dword [edi + 0xb0], esi
adc dword [edi + 0xb4], edx
movzx eax, byte [ecx]
cmp al, 0xd
je 0x4429a0
cmp al, 0xa
je 0x4429a0
mov byte [ecx + esi], 0
mov dword [esp + 8], 0x11
mov eax, dword [ebx + 0x4008]
mov dword [esp], 0x5e4cfb
mov dword [esp + 4], eax
call fcn.0046c6c0
test eax, eax
je 0x442815
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xf8]
cmp eax, 0x191
je 0x442b00
mov dword [esp + 8], 0x13
mov eax, dword [ebx + 0x4008]
mov dword [esp], 0x5e4d0d
mov dword [esp + 4], eax
call fcn.0046c6c0
test eax, eax
je 0x44284c
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xf8]
cmp eax, 0x197
je 0x442b00
mov dword [esp + 8], 0xf
mov eax, dword [ebx + 0x4008]
mov dword [esp], 0x5e4d21
mov dword [esp + 4], eax
call fcn.0046c6c0
test eax, eax
je 0x442b60
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xf8]
lea edx, [eax - 0xc8]
cmp edx, 0x63
ja 0x442c80
mov dword [esp + 8], eax
mov dword [esp + 4], str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov dword [esp], ecx
call fcn.0045fe80
mov dword [ebx + 0x4000], 0
mov dword [ebx + 0x400c], ebx
mov dword [ebx + 0x4008], ebx
mov ecx, dword [ebx + 0x4004]
jmp 0x442584
test eax, eax
je 0x442697
mov esi, dword [ebx + 0x4018]
cmp esi, 2
jne 0x44226e
mov eax, dword [ebp + 0x500]
and byte [eax + 0x401c], 0xfd
mov dword [eax + 0x4018], 0
mov dword [eax + 0x4004], 1
mov dword [eax + 0x4008], eax
mov dword [eax + 0x400c], eax
mov dword [eax + 0x4010], 0
mov dword [eax + 0x4014], 0
mov esi, dword [ebx + 0x4018]
jmp 0x44226e
lea eax, [esp + 0x5c]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 0x5c], 0
mov dword [esp + 0xc], eax
call fcn.0046c890
cmp eax, 0xffffffff
jne 0x4428b5
mov edi, dword [esp + 0x2c]
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], edi
call fcn.0045fe80
mov dword [ebx + 0x4004], 0
mov dword [ebx + 0x4018], 2
mov dword [esp], ebp
call fcn.004567e0
test eax, eax
je 0x442668
add esp, 0x6c
mov edi, 0x2a
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
cmp dword [edi + 0xf8], 0x197
mov dword [ebx + 0x400c], ebx
mov eax, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
je 0x442b92
or edx, eax
mov dword [ebx + 0x4004], 0
jne 0x442978
mov dword [ebx + 0x4018], 2
mov dword [esp], ebp
call fcn.004567e0
test eax, eax
je 0x442668
jmp 0x442988
mov dword [esp], ebp
call fcn.0045a7e0
test eax, eax
jne 0x442b56
test byte [ebp + 0x27c], 1
je 0x44267c
or byte [ebx + 0x401c], 2
jmp 0x44267c
mov edi, eax
lea esi, [esp + 0x5c]
jmp 0x4424a8
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00460ea0
mov esi, dword [ebx + 0x4000]
mov ecx, dword [ebx + 0x4008]
mov eax, dword [esp + 0x2c]
jmp 0x442767
mov eax, dword [esp + 0x40]
mov dword [esp], str.Host:__s_r_n
mov dword [esp + 4], eax
call fcn.00468fa0
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4423cc
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [0x53638c]
lea eax, [esp + 0x5c]
mov dword [esp], eax
call fcn.0045b680
mov edi, 0x1b
jmp 0x442712
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x5c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0x5e4b74
mov dword [esp + 4], str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0045ba70
jmp 0x442471
mov eax, dword [edi + 0x9a4]
test eax, eax
je 0x442408
mov edx, dword [ebp + 0x2b4]
jmp 0x442408
cmp eax, 0x197
sete al
mov esi, eax
mov eax, dword [ebx + 0x4008]
mov dword [esp], eax
call fcn.0045a6f0
test eax, eax
je 0x442a99
mov dword [esp + 8], eax
mov dword [esp + 0x48], eax
mov eax, esi
movzx esi, al
mov dword [esp], ebp
mov dword [esp + 4], esi
call fcn.0045b360
mov edx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp], edx
call dword [0x53638c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x44289f
mov edi, eax
jmp 0x442712
mov dword [esp + 8], 0x5e4d66
mov dword [esp + 4], 0x5e4d6c
mov eax, dword [ebx + 0x4008]
mov dword [esp], eax
call fcn.0045bcd0
test al, al
je 0x442d2f
or byte [ebx + 0x401c], 2
jmp 0x44289f
test byte [edi + 0xe04], 0x20
jne 0x4429c2
mov edi, edx
mov dword [ebx + 0x4004], 2
or edi, eax
jne 0x442cb0
test byte [ebx + 0x401c], 1
jne 0x442d87
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x4004], 0
mov dword [ebx + 0x4018], 2
jmp 0x442978
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str.CONNECT_response_too_large_
mov edi, 0x38
mov dword [esp], eax
call fcn.00460000
jmp 0x442712
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x4004], 0
mov dword [esp], ebp
call fcn.004567e0
test eax, eax
je 0x442668
jmp 0x442988
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0x598]
test edx, edx
je 0x442c3f
mov eax, dword [edi + 0xc48]
test eax, eax
jne 0x442cf5
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov dword [esp], eax
call fcn.00460000
mov dword [ebx + 0x4004], 0
mov dword [esp], ebp
call fcn.004567e0
test eax, eax
jne 0x442988
mov edi, 0x38
jmp 0x442712
lea eax, [ebx + 0x4010]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x4008]
add eax, 0xf
mov dword [esp], eax
call fcn.0046e750
jmp 0x44289f
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Ignore__I64d_bytes_of_response_body_n
mov dword [esp], eax
call fcn.0045fe80
mov ecx, dword [ebx + 0x4004]
mov eax, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
or edx, eax
jne 0x442584
mov dword [ebx + 0x4018], 2
jmp 0x442584
or byte [ebp + 0x27e], 0x80
mov dword [esp + 4], str.Proxy_CONNECT_connection_closed_n
mov dword [esp], edi
call fcn.0045fe80
jmp 0x442c04
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov edi, 0x1c
mov dword [esp], eax
call fcn.00460000
jmp 0x442712
mov dword [esp + 8], 0x12
mov eax, dword [ebx + 0x4008]
mov dword [esp], 0x5e4d78
mov dword [esp + 4], eax
call fcn.0046c6c0
test eax, eax
je 0x442f18
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xf8]
lea edx, [eax - 0xc8]
cmp edx, 0x63
ja 0x442eca
mov dword [esp + 8], eax
mov dword [esp + 4], str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov dword [esp], ecx
call fcn.0045fe80
jmp 0x44289f
mov edi, dword [esp + 0x2c]
mov dword [esp + 4], str.Ignore_chunked_response_body_n
mov dword [esp], edi
call fcn.0045fe80
or byte [edi + 0x56c], 8
mov eax, dword [ebx + 0x4008]
cmp byte [eax + 1], 0xa
jne 0x442db7
add eax, 1
mov dword [ebx + 0x4008], eax
lea edi, [esp + 0x58]
add eax, 1
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 0xc], edi
call fcn.0046c890
cmp eax, 0xffffffff
je 0x442950
mov ecx, dword [ebx + 0x4004]
mov eax, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
jmp 0x442cde
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x1a0]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00437520
mov eax, dword [esp + 0x44]
mov dword [edi + 0x1a0], 0xffffffff
mov eax, dword [eax + 0xe34]
mov dword [esp + 0x2c], eax
sub eax, 0xc8
cmp eax, 0x63
jbe 0x4426b3
test byte [ebx + 0x401c], 2
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x124]
jne 0x442f9e
mov dword [esp], eax
call dword [0x53638c]
mov eax, dword [esp + 0x44]
mov dword [eax + 0x124], 0
mov dword [esp + 4], 2
mov dword [esp], ebp
call fcn.00439150
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x1a0]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00437520
mov dword [edi + 0x1a0], 0xffffffff
cmp byte [ebp + 0x27e], 0
mov dword [ebx + 0x4018], 0
js 0x442710
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0xf8]
mov dword [esp + 4], str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.00460000
jmp 0x442c6d
mov dword [esp + 8], 0x5e4dc1
mov dword [esp + 4], 0x5e4d78
mov eax, dword [ebx + 0x4008]
mov dword [esp], eax
call fcn.0045bcd0
test al, al
je 0x44289f
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov dword [esp], eax
call fcn.0045fe80
or byte [ebx + 0x401c], 1
mov dword [esp], ebp
call fcn.0046c870
jmp 0x44289f
mov dword [esp + 8], 0x5e4d66
mov dword [esp + 4], 0x5e4de4
mov eax, dword [ebx + 0x4008]
mov dword [esp], eax
call fcn.0045bcd0
test al, al
jne 0x442b86
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], str.HTTP_1._d__d
add eax, 0xf8
mov dword [esp + 0xc], eax
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x4008]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x44289f
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0xf8]
mov dword [edx + 0xe34], eax
jmp 0x44289f
xor eax, eax
jmp 0x442e49
mov edi, dword [esp + 0x2c]
jmp 0x442978
mov edi, eax
jmp 0x442494
test eax, eax
je 0x442e49
or byte [ebp + 0x27e], 0x80
mov dword [esp + 4], str.Connect_me_again_please_n
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0045fe80
mov eax, dword [ebp]
mov edx, dword [ebp + 0x500]
mov dword [edx + 0x4018], 2
mov dword [esp + 4], str.CONNECT_phase_completed__n
mov dword [esp], eax
call fcn.0045fe80
jmp 0x442e90