Function at 0x1002a9c0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + ecx*4 + 0x154]
push ebx
xor ebx, ebx
cmp dword [eax + ecx*4 + 0x4bc], 2
push esi
mov esi, dword [eax]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
jne 0x1002aa06
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret
push ebp
push edi
mov dword [eax + 0x228], ebx
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
cmp dword [eax + ecx*4 + 0x4bc], ebx
jne 0x1002ac2d
push edi
push ebp
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.1000e5e0
mov eax, dword [esi + 0x10c]
add esp, 0x10
cmp eax, ebx
je 0x1002aa4d
push eax
call dword [0x10074008]
add esp, 4
mov dword [esi + 0x10c], ebx
call fcn.10026140
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x1002b313
push edi
push ebp
push str._s:_hu
call fcn.10013a20
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1002b2cc
mov eax, dword [esp + 0x4c]
push 1
push ebp
push str.CONNECT
push eax
call fcn.10025da0
push ebp
mov edi, eax
call dword [0x10074008]
add esp, 0x14
test edi, edi
jne 0x1002b29d
mov edi, dword [esp + 0x4c]
cmp dword [edi + 0x138], 1
mov ebx, 0x10066a41
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x1006d210
je 0x1002aac9
mov dword [esp + 0x14], 0x1006d214
mov eax, dword [edi + 0x1e8]
mov ecx, 0x10068194
test eax, eax
jne 0x1002ad14
mov ecx, ebx
mov eax, ebx
mov edx, dword [esp + 0x58]
push edx
push ecx
mov ecx, dword [esp + 0x5c]
push ecx
push eax
push str._s_s_s:_hu
call fcn.10013a20
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1002b2e3
push str.Host:
push edi
call fcn.100257d0
add esp, 8
test eax, eax
jne 0x1002ab2d
push ebp
push str.Host:__s_r_n
call fcn.10013a20
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002b2fe
push str.Proxy_Connection:
push edi
call fcn.100257d0
add esp, 8
test eax, eax
jne 0x1002ab47
mov dword [esp + 0x20], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.100257d0
add esp, 8
test eax, eax
jne 0x1002ab6b
cmp dword [esi + 0x3f4], eax
je 0x1002ab6b
mov edx, dword [edi + 0x25c]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x258]
test eax, eax
jne 0x1002ab7a
mov eax, 0x10066a41
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x20]
push ebx
push eax
push ebp
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.10026a80
add esp, 0x20
mov edi, eax
test ebx, ebx
je 0x1002abb3
cmp byte [ebx], 0
je 0x1002abb3
push ebx
call dword [0x10074008]
add esp, 4
push ebp
call dword [0x10074008]
add esp, 4
test edi, edi
jne 0x1002b285
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x4c]
push ebp
push 1
push ebx
call fcn.10026b80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1002b285
push 0x10068588
push ebp
call fcn.10026a80
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002b285
mov ebp, dword [esp + 0x50]
push ebp
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esi + 0x8734]
push edx
push ebx
push eax
call fcn.10026150
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1002b285
mov dword [ebx + ebp*4 + 0x4bc], 1
xor ebx, ebx
push 1
push ebx
push esi
call fcn.10010dd0
add esp, 0xc
test eax, eax
jle 0x1002b320
mov ecx, dword [esp + 0x30]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.10003a20
add esp, 0x10
test eax, eax
je 0x1002b467
mov ebp, dword [esp + 0x4c]
lea eax, [esi + 0x5d4]
xor ebx, ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov edi, eax
mov dword [esp + 0x24], ebx
lea esp, [esp]
cmp dword [esp + 0x14], 0
je 0x1002b1ea
cmp dword [esp + 0x2c], 0
jne 0x1002b40b
push 1
push 0
push esi
call fcn.10010dd0
add esp, 0xc
test eax, eax
jle 0x1002b2b1
cmp eax, 0x3e8
jl 0x1002acb7
mov eax, 0x3e8
mov edx, dword [esp + 0x30]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10003a20
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002b1b5
test eax, eax
je 0x1002b1cb
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
mov ecx, 0x4000
sub ecx, dword [esp + 0x28]
push ecx
push edx
push eax
push ebp
call fcn.1000e2c0
add esp, 0x14
cmp eax, 0x51
je 0x1002b1dc
xor ecx, ecx
cmp eax, ecx
je 0x1002ad1e
mov dword [esp + 0x14], ecx
jmp 0x1002b1cb
mov eax, 0x10068178
jmp 0x1002aae0
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jg 0x1002ad5e
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x158], ecx
je 0x1002ad54
cmp dword [esi + 0x8674], ecx
je 0x1002ad54
push str.Proxy_CONNECT_connection_closed
push esi
mov dword [ebp + 0x228], 1
call fcn.1000e5e0
jmp 0x1002b1c8
push str.Proxy_CONNECT_aborted
jmp 0x1002b1ba
add dword [esp + 0x24], eax
cmp dword [esp + 0x14], 1
jle 0x1002ae16
mov dword [esp + 0x24], ecx
lea ecx, [esi + 0x5d4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
or ecx, dword [esp + 0x44]
je 0x1002adb6
cdq
sub dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
sbb eax, edx
mov dword [esp + 0x44], eax
test eax, eax
jg 0x1002b1cb
jl 0x1002ada9
cmp dword [esp + 0x40], 0
ja 0x1002b1cb
mov dword [esp + 0x14], 0
jmp 0x1002b1cb
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push ebp
mov dword [esp + 0x30], 0
call fcn.10036040
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002adfe
push str.chunk_reading_DONE_n
push esi
call fcn.1000e5e0
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x1c], 0
mov dword [ebp + ecx*4 + 0x4bc], 2
jmp 0x1002b1c8
mov edx, dword [esp + 0x20]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.1000e5e0
add esp, 0xc
jmp 0x1002b1cb
mov dword [esp + 0x20], ecx
cmp eax, ecx
jle 0x1002b1cb
jmp 0x1002ae26
xor ecx, ecx
mov edx, dword [esp + 0x18]
inc ebx
cmp byte [edx], 0xa
mov dword [esp + 0x38], ebx
jne 0x1002b00f
cmp dword [esi + 0x334], ecx
je 0x1002ae4e
push ebp
push ebx
push edi
push 1
push esi
call fcn.1000e450
add esp, 0x14
cmp dword [esi + 0x318], 0
mov eax, 2
je 0x1002ae61
mov eax, 3
push ebx
push edi
push eax
push ebp
call fcn.1000ec90
add dword [esi + 0x8730], ebx
add dword [esi + 0x80], ebx
add esp, 0x10
test eax, eax
jne 0x1002b469
mov al, byte [edi]
cmp al, 0xd
je 0x1002b029
cmp al, 0xa
je 0x1002b029
mov al, byte [ebx + edi]
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], al
mov byte [ebx + edi], 0
call fcn.1002b7f0
add esp, 0xc
test eax, eax
je 0x1002aebf
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x1002aee0
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.1002b7f0
add esp, 0xc
test eax, eax
je 0x1002af26
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x1002af26
xor ebx, ebx
cmp eax, 0x197
push edi
sete bl
call fcn.10025840
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1002b313
mov ecx, dword [esp + 0x4c]
push ebp
push ebx
push ecx
call fcn.10025eb0
push ebp
mov ebx, eax
call dword [0x10074008]
add esp, 0x10
test ebx, ebx
jne 0x1002b33b
mov ebx, dword [esp + 0x38]
jmp 0x1002aff9
push 0xf
push edi
push str.Content_Length:
call fcn.1002b7f0
add esp, 0xc
test eax, eax
je 0x1002af57
push 0xa
lea edx, [edi + 0xf]
push 0
push edx
call sub.MSVCR120.dll__strtoi64
add esp, 0xc
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x1002affd
push str.close
push str.Connection:
push edi
call fcn.100263f0
add esp, 0xc
test eax, eax
je 0x1002af7b
mov dword [esp + 0x28], 1
jmp 0x1002affd
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.100263f0
add esp, 0xc
test eax, eax
je 0x1002afb0
push str.CONNECT_responded_chunked_n
push esi
call fcn.1000e5e0
push ebp
mov dword [esp + 0x40], 1
call fcn.10036030
add esp, 0xc
jmp 0x1002affd
push str.close
push str.Proxy_Connection:
push edi
call fcn.100263f0
add esp, 0xc
test eax, eax
je 0x1002afd1
mov dword [esp + 0x28], 1
jmp 0x1002affd
lea ebp, [esi + 0xc8]
push ebp
lea eax, [esp + 0x40]
push eax
push str.HTTP_1._d__d
push edi
call sub.ntdll.dll_sscanf
add esp, 0x10
cmp eax, 2
jne 0x1002aff9
mov ecx, dword [ebp]
mov dword [esi + 0x8720], ecx
mov ebp, dword [esp + 0x4c]
mov dl, byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
mov byte [ebx + edi], dl
mov edi, dword [esp + 0x18]
xor ebx, ebx
inc edi
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x18]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x1002ae24
jmp 0x1002b1cb
xor ecx, ecx
cmp dword [esi + 0xc8], 0x197
lea eax, [esi + 0x5d4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
jne 0x1002b178
cmp dword [esi + 0x8684], ecx
jne 0x1002b178
mov edx, dword [esp + 0x40]
or edx, dword [esp + 0x44]
mov dword [esp + 0x14], 2
je 0x1002b0c7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.1000e5e0
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x30]
add esp, 0x10
cdq
sub dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
sbb eax, edx
mov dword [esp + 0x44], eax
test eax, eax
jg 0x1002b1a4
jl 0x1002b0ab
cmp dword [esp + 0x40], 0
ja 0x1002b1a4
mov edx, dword [esp + 0x50]
mov dword [esp + 0x14], 0
mov dword [ebp + edx*4 + 0x4bc], 2
jmp 0x1002b1cb
cmp dword [esp + 0x34], ecx
je 0x1002b163
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x20]
mov dword [esi + 0x100], 1
push edx
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.1000e5e0
add esp, 0xc
cmp byte [edi + 1], 0xa
jne 0x1002b0fd
inc edi
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [edi + 1]
push edx
push ebp
call fcn.10036040
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002b151
push str.chunk_reading_DONE_n
push esi
call fcn.1000e5e0
mov eax, dword [esp + 0x58]
mov edx, eax
mov dword [ebp + eax*4 + 0x4bc], 2
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebp + edx*4 + 0x4bc], 2
jmp 0x1002b1cb
mov ecx, dword [esp + 0x1c]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.1000e5e0
jmp 0x1002b1a1
mov edx, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [ebp + edx*4 + 0x4bc], 2
jmp 0x1002b1cb
cmp dword [esi + 0x8720], 0xc8
mov dword [esp + 0x14], ecx
jne 0x1002b1a4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
dec eax
cmp eax, ecx
je 0x1002b1a4
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.1000e670
add esp, 0xc
mov edx, dword [esp + 0x50]
mov dword [ebp + edx*4 + 0x4bc], 2
jmp 0x1002b1cb
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [esp + 0x34], 1
call fcn.1000e670
add esp, 8
push ebp
call fcn.1002c820
add esp, 4
test eax, eax
jne 0x1002b345
cmp dword [esp + 0x24], 0x4000
jb 0x1002ac80
cmp dword [esp + 0x2c], 0
jne 0x1002b40b
cmp dword [esi + 0x8720], 0xc8
je 0x1002b226
push ebp
call fcn.100268b0
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x1002b469
cmp dword [ebp + 0x1d0], ebx
je 0x1002b228
mov dword [esp + 0x28], 1
jmp 0x1002b22e
xor ebx, ebx
cmp dword [esp + 0x28], ebx
je 0x1002b23a
cmp dword [esi + 0x10c], ebx
jne 0x1002b352
mov edi, dword [esp + 0x50]
cmp dword [esi + 0x10c], ebx
je 0x1002b372
cmp dword [ebp + edi*4 + 0x4bc], 2
jne 0x1002b26a
push ebx
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ebp + edi*4 + 0x4bc], ebx
call fcn.1000e5e0
add esp, 0xc
cmp dword [esi + 0x10c], ebx
je 0x1002b372
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
xor ebx, ebx
jmp 0x1002aa0e
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.1000e670
add esp, 8
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x38
ret
push ebx
call dword [0x10074008]
add esp, 4
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x38
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.1000e670
add esp, 8
pop edi
pop ebp
pop esi
mov eax, 0x38
pop ebx
add esp, 0x38
ret
push ebx
call dword [0x10074008]
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x24]
push eax
call dword [0x10074008]
add esp, 4
pop edi
pop ebp
pop esi
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
push ebp
call dword [0x10074008]
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x10074008]
add esp, 8
pop edi
pop ebp
pop esi
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.1000e670
add esp, 8
pop edi
pop ebp
pop esi
mov eax, 0x38
pop ebx
add esp, 0x38
ret
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x38
ret
pop edi
pop ebp
pop esi
mov eax, 0x2a
pop ebx
add esp, 0x38
ret
mov edi, dword [esp + 0x50]
mov edx, dword [ebp + edi*4 + 0x154]
push edx
push ebp
call fcn.10011770
add esp, 8
mov dword [ebp + edi*4 + 0x154], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x1002b418
cmp dword [esp + 0x28], ebx
je 0x1002b3a7
cmp dword [esi + 0x10c], ebx
je 0x1002b3a7
push str.Connect_me_again_please_n
push esi
mov dword [ebp + 0x228], 1
call fcn.1000e5e0
jmp 0x1002b3e4
mov eax, dword [esi + 0x10c]
cmp eax, ebx
je 0x1002b3c1
push eax
call dword [0x10074008]
add esp, 4
mov dword [esi + 0x10c], ebx
mov dword [ebp + 0x1d0], 1
mov eax, dword [ebp + edi*4 + 0x154]
push eax
push ebp
call fcn.10011770
mov dword [ebp + edi*4 + 0x154], 0xffffffff
add esp, 8
mov dword [ebp + edi*4 + 0x4bc], ebx
cmp dword [ebp + 0x228], ebx
jne 0x1002b467
mov ecx, dword [esi + 0xc8]
push ecx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.1000e670
add esp, 0xc
pop edi
pop ebp
pop esi
mov eax, 0x38
pop ebx
add esp, 0x38
ret
mov dword [ebp + edi*4 + 0x4bc], 2
mov eax, dword [ebp + 0x258]
cmp eax, ebx
je 0x1002b43d
push eax
call dword [0x10074008]
add esp, 4
mov dword [ebp + 0x258], ebx
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebp + 0x258], ebx
push esi
mov dword [esi + 0x8678], 1
call fcn.1000e5e0
mov dword [esi + 0x100], ebx
add esp, 8
mov dword [ebp + 0x20c], ebx
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x38
ret