Function at 0x1003f360
Capabilities:
Check http status code

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
xor ecx, ecx
push ebp
mov ebp, dword [ebx]
mov dword [esp + 0x38], ecx
mov eax, dword [ebp + 0x1d4]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jne 0x1003f387
mov dword [esp + 0x2c], 0x36ee80
mov eax, dword [esp + 0x4c]
cmp dword [ebx + eax*4 + 0x484], 2
mov edx, dword [ebx + eax*4 + 0x130]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ecx
jne 0x1003f3bc
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
push esi
mov dword [ebx + 0x1f8], ecx
push edi
jmp 0x1003f3d0
xor edi, edi
cmp dword [ebx + eax*4 + 0x484], edi
je 0x1003f9ee
lea eax, [ebp + 0x598]
mov dword [esp + 0x20], eax
mov esi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 1
jmp 0x1003f400
cmp dword [esp + 0x14], 0
je 0x1003f93e
cmp dword [esp + 0x2c], 0
jne 0x1003fcf1
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.10029ee0
push edx
push eax
call fcn.10029f10
mov ecx, dword [esp + 0x44]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x1003f9d3
cmp ecx, 0x3e8
jl 0x1003f44e
mov ecx, 0x3e8
mov edx, dword [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.1003d190
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003f907
test eax, eax
je 0x1003f91d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
mov ecx, 0x4000
sub ecx, edi
push ecx
push edx
push eax
push ebx
call fcn.10025070
add esp, 0x14
cmp eax, 0x51
je 0x1003f932
xor ecx, ecx
cmp eax, ecx
je 0x1003f4a9
mov dword [esp + 0x14], ecx
jmp 0x1003f91d
mov eax, dword [esp + 0x18]
cmp eax, ecx
jg 0x1003f4de
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x150], ecx
je 0x1003f4d4
cmp dword [ebp + 0x863c], ecx
je 0x1003f4d4
mov dword [ebx + 0x1f8], 1
jmp 0x1003f91d
push str.Proxy_CONNECT_aborted
jmp 0x1003f90c
add edi, eax
cmp dword [esp + 0x14], 1
mov dword [esp + 0x28], edi
jle 0x1003f58e
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
lea ecx, [ebp + 0x598]
mov dword [esp + 0x20], ecx
je 0x1003f538
cdq
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x48], eax
test eax, eax
jg 0x1003f91d
jl 0x1003f52b
cmp dword [esp + 0x44], 0
ja 0x1003f91d
mov dword [esp + 0x14], 0
jmp 0x1003f91d
lea edx, [esp + 0x30]
push edx
push eax
push ecx
xor edi, edi
push ebx
mov dword [esp + 0x40], edi
call fcn.100461c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003f576
push str.chunk_reading_DONE_n
push ebp
call fcn.10025340
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], edi
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x1003f91a
mov ecx, dword [esp + 0x30]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.10025340
add esp, 0xc
jmp 0x1003f91d
xor edi, edi
mov dword [esp + 0x30], edi
test eax, eax
jle 0x1003f91d
mov ecx, 1
mov edx, dword [esp + 0x20]
add dword [esp + 0x1c], ecx
cmp byte [edx], 0xa
jne 0x1003f76c
cmp dword [ebp + 0x31c], 0
je 0x1003f5cd
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
push 1
push ebp
call fcn.100251b0
add esp, 0x14
cmp dword [ebp + 0x300], 0
mov eax, 2
je 0x1003f5e0
mov eax, 3
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
push ebx
call fcn.100256b0
add esp, 0x10
test eax, eax
jne 0x1003fd49
mov al, byte [esi]
cmp al, 0xd
je 0x1003f783
cmp al, 0xa
je 0x1003f783
mov eax, dword [esp + 0x1c]
mov dl, byte [eax + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], dl
mov byte [eax + esi], 0
call fcn.1003cec0
add esp, 0xc
test eax, eax
je 0x1003f63a
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x1003f65b
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.1003cec0
add esp, 0xc
test eax, eax
je 0x1003f673
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x1003f673
push esi
push eax
push ebx
call fcn.10038db0
add esp, 0xc
test eax, eax
jne 0x1003fd49
jmp 0x1003f749
push 0xf
push esi
push str.Content_Length:
call fcn.1003cec0
add esp, 0xc
test eax, eax
je 0x1003f6a4
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.100525af
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x1003f749
push str.close
push str.Connection:
push esi
call fcn.10039310
add esp, 0xc
test eax, eax
je 0x1003f6c8
mov dword [esp + 0x24], 1
jmp 0x1003f749
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.10039310
add esp, 0xc
test eax, eax
je 0x1003f6fd
push str.CONNECT_responded_chunked_n
push ebp
call fcn.10025340
push ebx
mov dword [esp + 0x48], 1
call fcn.100461a0
add esp, 0xc
jmp 0x1003f749
push str.close
push str.Proxy_Connection:
push esi
call fcn.10039310
add esp, 0xc
test eax, eax
je 0x1003f71e
mov dword [esp + 0x24], 1
jmp 0x1003f749
lea edi, [ebp + 0x90]
push edi
lea ecx, [esp + 0x44]
push ecx
push str.HTTP_1._d__d
push esi
call fcn.10051807
add esp, 0x10
cmp eax, 2
jne 0x1003f745
mov edx, dword [edi]
mov dword [ebp + 0x86e8], edx
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
mov byte [ecx + esi], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
lea esi, [edx + 1]
mov ecx, 1
add dword [esp + 0x20], ecx
add edi, ecx
cmp edi, eax
mov dword [esp + 0x30], edi
jl 0x1003f5a1
jmp 0x1003f91d
xor ecx, ecx
cmp dword [ebp + 0x90], 0x197
lea eax, [ebp + 0x598]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
jne 0x1003f8cc
cmp dword [ebp + 0x864c], ecx
jne 0x1003f8cc
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
mov dword [esp + 0x14], 2
je 0x1003f81f
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
call fcn.10025340
mov eax, dword [esp + 0x28]
sub eax, edi
cdq
add esp, 0x10
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x48], eax
test eax, eax
jg 0x1003f8f6
jl 0x1003f803
cmp dword [esp + 0x44], 0
ja 0x1003f8f6
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x1003f91d
cmp dword [esp + 0x3c], ecx
je 0x1003f8b7
mov eax, dword [esp + 0x18]
sub eax, edi
push eax
push str._zd_bytes_of_chunk_left_n
push ebp
mov dword [ebp + 0x100], 1
call fcn.10025340
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x1003f850
inc esi
inc edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
sub edx, edi
push edx
lea eax, [esi + 1]
push eax
push ebx
call fcn.100461c0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003f8a5
push str.chunk_reading_DONE_n
push ebp
call fcn.10025340
mov ecx, dword [esp + 0x5c]
mov eax, ecx
mov dword [ebx + ecx*4 + 0x484], 2
add esp, 8
mov dword [esp + 0x14], 0
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x1003f91d
mov edx, dword [esp + 0x18]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push ebp
call fcn.10025340
jmp 0x1003f8f3
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x1003f91d
cmp dword [ebp + 0x86e8], 0xc8
mov dword [esp + 0x14], ecx
jne 0x1003f8f6
mov eax, dword [esp + 0x18]
sub eax, edi
dec eax
cmp eax, ecx
je 0x1003f8f6
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebp
call fcn.100253d0
add esp, 0xc
mov eax, dword [esp + 0x54]
mov dword [ebx + eax*4 + 0x484], 2
jmp 0x1003f91d
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
mov dword [esp + 0x34], 1
call fcn.100253d0
add esp, 8
push ebx
call fcn.1003ebe0
add esp, 4
test eax, eax
jne 0x1003fc6f
mov edi, dword [esp + 0x28]
cmp edi, 0x4000
jb 0x1003f400
cmp dword [esp + 0x2c], 0
jne 0x1003fcf1
cmp dword [ebp + 0x86e8], 0xc8
je 0x1003f97a
push ebx
call fcn.10039780
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x1003fd49
cmp dword [ebx + 0x1a0], edi
je 0x1003f97c
mov dword [esp + 0x24], 1
jmp 0x1003f982
xor edi, edi
cmp dword [esp + 0x24], edi
je 0x1003f98e
cmp dword [ebp + 0x10c], edi
jne 0x1003fc7c
mov esi, dword [esp + 0x54]
cmp dword [ebp + 0x10c], edi
je 0x1003fc9c
cmp dword [ebx + esi*4 + 0x484], 2
jne 0x1003f9be
push edi
push str.TUNNEL_STATE_switched_to:__d_n
push ebp
mov dword [ebx + esi*4 + 0x484], edi
call fcn.10025340
add esp, 0xc
cmp dword [ebp + 0x10c], edi
je 0x1003fc9c
mov eax, dword [esp + 0x54]
jmp 0x1003f3d0
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.100253d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
movzx esi, word [esp + 0x5c]
mov edi, dword [esp + 0x58]
push esi
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebp
call fcn.10025340
mov eax, dword [ebp + 0x10c]
add esp, 0x10
test eax, eax
je 0x1003fa25
push eax
call dword [0x10081004]
add esp, 4
mov dword [ebp + 0x10c], 0
call fcn.10039060
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x1003fb40
push esi
push edi
push str._s:_hu
call fcn.10028d60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003fa62
push ebx
call dword [0x10081004]
add esp, 4
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x50]
push 1
push edi
push str.CONNECT
push ecx
call fcn.10038ca0
push edi
mov esi, eax
call dword [0x10081004]
add esp, 0x14
test esi, esi
jne 0x1003fc42
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x114], 1
mov ecx, 0x1007aeea
mov ebx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0x10073288
je 0x1003fab4
mov dword [esp + 0x34], 0x1007328c
mov eax, dword [esi + 0x1b8]
mov edx, 0x1006eaa4
test eax, eax
jne 0x1003fac7
mov edx, ecx
jmp 0x1003facc
mov ecx, 0x1006ea88
movzx eax, word [esp + 0x5c]
push eax
push edx
mov edx, dword [esp + 0x60]
push edx
push ecx
push str._s_s_s:_hu
call fcn.10028d60
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1003fb05
mov eax, dword [esp + 0x2c]
push eax
call dword [0x10081004]
add esp, 4
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.Host:
push ebp
call fcn.10038760
add esp, 8
test eax, eax
jne 0x1003fb4d
push edi
push str.Host:__s_r_n
call fcn.10028d60
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1003fb4d
push edi
call dword [0x10081004]
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x10081004]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
push str.Proxy_Connection:
push ebp
call fcn.10038760
add esp, 8
test eax, eax
jne 0x1003fb67
mov dword [esp + 0x3c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebp
call fcn.10038760
add esp, 8
test eax, eax
jne 0x1003fb8b
cmp dword [ebp + 0x3dc], eax
je 0x1003fb8b
mov edx, dword [esi + 0x22c]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x228]
test eax, eax
jne 0x1003fb9a
mov eax, 0x1007aeea
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x40]
push ebx
push eax
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.10039950
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x1003fbd3
cmp byte [ebx], 0
je 0x1003fbd3
push ebx
call dword [0x10081004]
add esp, 4
push edi
call dword [0x10081004]
add esp, 4
test esi, esi
jne 0x1003fc2a
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
push edi
push ebx
call fcn.10039a50
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003fc2a
push 0x10070534
push edi
call fcn.10039950
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003fc2a
mov edx, dword [esp + 0x54]
push edx
push eax
lea eax, [ebp + 0x86fc]
push eax
push ebx
push edi
call fcn.10039070
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1003fc56
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.100253d0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push ebx
call dword [0x10081004]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword [ebx + ecx*4 + 0x484], 1
xor eax, eax
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x3c
ret
mov esi, dword [esp + 0x54]
mov edx, dword [ebx + esi*4 + 0x130]
push edx
push ebx
call fcn.100272f0
add esp, 8
mov dword [ebx + esi*4 + 0x130], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x1003fcfe
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.100253d0
add esp, 0xc
cmp dword [esp + 0x24], edi
je 0x1003fcd0
cmp dword [ebp + 0x10c], edi
je 0x1003fcd0
mov dword [ebx + 0x1f8], 1
mov eax, dword [ebp + 0x10c]
cmp eax, edi
je 0x1003fcea
push eax
call dword [0x10081004]
add esp, 4
mov dword [ebp + 0x10c], edi
mov dword [ebx + esi*4 + 0x484], edi
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
mov dword [ebx + esi*4 + 0x484], 2
mov eax, dword [ebx + 0x228]
cmp eax, edi
je 0x1003fd23
push eax
call dword [0x10081004]
add esp, 4
mov dword [ebx + 0x228], edi
push 0x100741a8
mov dword [ebx + 0x228], edi
push ebp
mov dword [ebp + 0x8640], 1
call fcn.10025340
add esp, 8
mov dword [ebp + 0x100], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret