Function at 0x10101d30
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add eax, 0x108
push esi
push edi
push ebx
mov edi, dword [ebx]
lea eax, [ebx + eax*4]
mov esi, dword [ebx + 0x6ac]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
call fcn.101026c0
add esp, 4
test al, al
jne 0x1010268c
mov byte [ebx + 0x50c], al
cmp dword [esi + 0x20], 0
jne 0x10101fb9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.100bdc90
push dword [edi + 0x12c]
call dword [0x102bb378]
push dword [ebp + 0x14]
mov dword [edi + 0x12c], 0
push dword [ebp + 0x10]
push str._s:_d
call fcn.100bf3a0
add esp, 0x20
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1010254d
lea eax, [ebp - 0x40]
push 0x20000
push eax
call fcn.100dbe00
push 1
push dword [ebp - 0x10]
push str.CONNECT
push ebx
call fcn.100cd120
push dword [ebp - 0x10]
mov ebx, eax
call dword [0x102bb378]
add esp, 0x1c
test ebx, ebx
jne 0x10101f9b
mov dword [ebp - 0x10], ebx
mov ecx, 0x102456ac
mov ebx, dword [ebp + 8]
mov eax, 0x102456b0
mov dword [ebp - 0x14], 0x102a4392
cmp dword [ebx + 0x358], 1
cmovne eax, ecx
mov cl, byte [ebx + 0x514]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebx + 0x304]
je 0x10101e3d
push 0x3a
push eax
call fcn.102009c0
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x102a4392
mov eax, 0x102a9998
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, str.___:
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.100bf3a0
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
je 0x10102541
push str.Host
push ebx
call fcn.100cca80
add esp, 8
test eax, eax
jne 0x10101ea1
push dword [ebp - 8]
push str.Host:__s_r_n
call fcn.100bf3a0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10102520
push str.Proxy_Connection
push ebx
call fcn.100cca80
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x102a4392
cmovne ecx, eax
push str.User_Agent
push ebx
mov dword [ebp - 0x1c], ecx
call fcn.100cca80
add esp, 0x10
test eax, eax
jne 0x10101ee1
cmp dword [edi + 0x9fc], eax
je 0x10101ee1
mov eax, dword [edi + 0x10d8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x1c]
mov eax, dword [edi + 0x10d4]
mov edx, 0x102a4392
push dword [ebp - 0x14]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
push dword [ebp - 8]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.100dbd60
mov ebx, eax
add esp, 0x20
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10101f2f
push eax
call dword [0x102bb378]
add esp, 4
push dword [ebp - 8]
call dword [0x102bb378]
add esp, 4
test ebx, ebx
jne 0x10101f8d
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp + 8]
call fcn.100cc400
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10101f8d
lea eax, [ebp - 0x40]
push 0x1022ec1c
push eax
call fcn.100dbd30
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10101f8d
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0x1158]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.100cc860
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x10101f9b
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.100bdbb0
add esp, 8
lea eax, [ebp - 0x40]
push eax
call fcn.100dbdd0
add esp, 4
test ebx, ebx
jne 0x10102559
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], 1
push 1
push 0
push edi
call fcn.100e2250
add esp, 0xc
test edx, edx
jl 0x101026a1
jg 0x10101fd8
test eax, eax
je 0x101026a1
push dword [ebp + 0xc]
push ebx
call fcn.100e1710
add esp, 8
test al, al
je 0x1010268c
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0
je 0x10102448
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x24]
push ebx
call fcn.100bdd50
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x1010268c
push dword [ebp + 8]
call fcn.100df0b0
add esp, 4
test eax, eax
jne 0x10102695
test ebx, ebx
jne 0x1010243e
cmp dword [ebp - 0x18], ebx
jle 0x101024d4
cmp dword [esi + 0x10], 1
jle 0x101020c4
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov edx, dword [esi + 0x1c]
or eax, edx
je 0x10102080
sub ecx, 1
mov dword [esi + 0x18], ecx
sbb edx, ebx
mov dword [esi + 0x1c], edx
js 0x10102437
jg 0x10102072
test ecx, ecx
je 0x10102437
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x10102000
jmp 0x10102448
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call fcn.100e3aa0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10102075
push str.chunk_reading_DONE_n
push edi
call fcn.100bdc90
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x10102075
push 1
lea eax, [ebp - 1]
push eax
push esi
call fcn.100dbdc0
add esp, 0xc
test eax, eax
jne 0x10102562
cmp byte [ebp - 1], 0xa
jne 0x10102072
push esi
call fcn.100dbe40
push esi
mov ebx, eax
call fcn.100dbe30
add esp, 8
mov dword [ebp - 0x14], eax
cmp byte [edi + 0xb3a], 0
je 0x1010210e
push eax
push ebx
push 1
push edi
call fcn.100bdb30
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp byte [edi + 0xb4d], 0
jne 0x1010213b
push eax
xor eax, eax
cmp byte [edi + 0xb35], al
push ebx
setne al
add eax, 2
push eax
push dword [ebp + 8]
call fcn.100bdb00
add esp, 0x10
test eax, eax
jne 0x1010268e
mov eax, dword [ebp - 0x14]
cdq
add dword [edi + 0x1150], eax
adc dword [edi + 0x1154], edx
add dword [edi + 0xa8], eax
adc dword [edi + 0xac], edx
mov al, byte [ebx]
cmp al, 0xd
je 0x10102375
cmp al, 0xa
je 0x10102375
push 0x11
push ebx
push str.WWW_Authenticate:
call fcn.100ac890
add esp, 0xc
test eax, eax
je 0x1010218d
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x14], eax
cmp eax, 0x191
je 0x101021b1
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.100ac890
add esp, 0xc
test eax, eax
je 0x10102204
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x14], eax
cmp eax, 0x197
jne 0x10102204
push ebx
call fcn.100ccbc0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1010254d
cmp dword [ebp - 0x14], 0x197
push ebx
sete cl
movzx ecx, cl
push ecx
push dword [ebp + 8]
call fcn.100ccf50
push ebx
mov dword [ebp - 0x20], eax
call dword [0x102bb378]
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
jne 0x1010268e
mov ebx, dword [ebp + 8]
push esi
call fcn.100dbe50
add esp, 4
jmp 0x10102075
push 0xf
push ebx
push str.Content_Length:
call fcn.100ac890
add esp, 0xc
test eax, eax
je 0x1010226e
mov ecx, dword [edi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x10102249
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.100bdc90
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
call fcn.100dbe50
add esp, 4
jmp 0x10102075
lea eax, [esi + 0x18]
push eax
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.100be530
mov ebx, dword [ebp + 8]
add esp, 0x10
push esi
call fcn.100dbe50
add esp, 4
jmp 0x10102075
push str.close
push str.Connection:
push ebx
call fcn.100ccb00
add esp, 0xc
test al, al
jne 0x10102360
push 0x12
push ebx
push str.Transfer_Encoding:
call fcn.100ac890
add esp, 0xc
test eax, eax
je 0x1010230e
mov ecx, dword [edi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x101022ce
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.100bdc90
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
call fcn.100dbe50
add esp, 4
jmp 0x10102075
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.100ccb00
add esp, 0xc
test al, al
je 0x10102364
push str.CONNECT_responded_chunked_n
push edi
call fcn.100bdc90
mov ebx, dword [ebp + 8]
push ebx
mov byte [esi + 0x24], 1
call fcn.100e3a60
add esp, 0xc
push esi
call fcn.100dbe50
add esp, 4
jmp 0x10102075
push str.close
push str.Proxy_Connection:
push ebx
call fcn.100ccb00
add esp, 0xc
test al, al
jne 0x10102360
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x28]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.10008120
add esp, 0x10
cmp eax, 2
jne 0x10102364
mov eax, dword [edi + 0xf0]
mov ebx, dword [ebp + 8]
push esi
mov dword [edi + 0x113c], eax
call fcn.100dbe50
add esp, 4
jmp 0x10102075
mov byte [esi + 0x25], 1
mov ebx, dword [ebp + 8]
push esi
call fcn.100dbe50
add esp, 4
jmp 0x10102075
cmp dword [edi + 0xf0], 0x197
jne 0x10102415
cmp byte [edi + 0x1101], 0
jne 0x10102415
mov edx, dword [esi + 0x18]
mov eax, edx
mov ecx, dword [esi + 0x1c]
or eax, ecx
mov dword [esi + 0x10], 2
je 0x101023b7
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.100bdc90
add esp, 0x10
jmp 0x1010241c
cmp byte [esi + 0x24], 0
je 0x10102415
push str.Ignore_chunked_response_body_n
push edi
call fcn.100bdc90
lea eax, [ebx + 1]
mov byte [edi + 0x587], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 1]
mov ebx, dword [ebp + 8]
push 1
push eax
push ebx
call fcn.100e3aa0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1010241f
push str.chunk_reading_DONE_n
push edi
call fcn.100bdc90
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x1010241f
mov dword [esi + 0x10], 0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x10102075
mov dword [esi + 0x20], 2
jmp 0x10102075
mov dword [esi + 0x20], 2
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], 0
push ebx
call fcn.100df0b0
add esp, 4
test eax, eax
jne 0x10102695
cmp dword [ebp - 0x10], eax
jne 0x10102570
mov eax, dword [edi + 0x113c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1010248f
push ebx
call fcn.100ccc90
add esp, 4
test eax, eax
jne 0x1010268e
cmp byte [ebx + 0x50d], al
je 0x1010248f
mov byte [esi + 0x25], 1
cmp byte [esi + 0x25], 0
je 0x101024a2
cmp dword [edi + 0x12c], 0
jne 0x1010257c
mov eax, dword [edi + 0x12c]
test eax, eax
je 0x10102593
cmp dword [esi + 0x20], 2
jne 0x101024c7
push 1
push ebx
call fcn.10102900
mov eax, dword [edi + 0x12c]
add esp, 8
test eax, eax
jne 0x10101d75
jmp 0x10102593
cmp dword [edi + 0x5b8], 0
je 0x10102503
cmp dword [edi + 0xdf0], 0
je 0x10102503
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov byte [ebx + 0x50c], 1
call fcn.100bdc90
add esp, 8
jmp 0x10102441
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x10], 1
call fcn.100bdbb0
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x10102441
push dword [ebp - 8]
call dword [0x102bb378]
lea eax, [ebp - 0x40]
push eax
call fcn.100dbdd0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call fcn.100dbdd0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push edi
call fcn.100bdbb0
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push dword [eax]
push ebx
call fcn.100e1690
mov eax, dword [ebp - 0xc]
add esp, 8
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x113c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1010263e
cmp byte [esi + 0x25], 0
je 0x101025d3
cmp dword [edi + 0x12c], 0
je 0x101025d3
push str.Connect_me_again_please_n
push edi
mov byte [ebx + 0x50c], 1
call fcn.100bdc90
push ebx
call fcn.101028d0
add esp, 0xc
jmp 0x10102608
push dword [edi + 0x12c]
call dword [0x102bb378]
push 2
push ebx
mov dword [edi + 0x12c], 0
call fcn.100e17c0
mov eax, dword [ebp - 0xc]
push dword [eax]
push ebx
call fcn.100e1690
mov eax, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax], 0xffffffff
mov dword [esi + 0x20], 0
cmp byte [ebx + 0x50c], 0
jne 0x1010268c
push esi
call fcn.100dbdd0
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.100bdbb0
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], 2
push dword [edi + 0x10d4]
call dword [0x102bb378]
push dword [edi + 0x113c]
mov dword [edi + 0x10d4], 0
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov word [edi + 0xdf4], 1
call fcn.100bdc90
mov byte [edi + 0x587], 0
push esi
mov byte [ebx + 0x51a], 0
call fcn.100dbdd0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.100bdbb0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret