Function at 0x426b10
Capabilities:
Check for time delay via gettickcount
Check http status code

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [ebx]
push esi
push edi
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, dword [ebp + 0x170]
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x426b39
mov dword [esp + 0x2c], 0x36ee80
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + eax*4 + 0xd4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], edi
mov byte [ebx + 0x13d], 0
jmp 0x426b70
cmp byte [ebx + 0x135], 0
jne 0x426d77
movzx esi, word [esp + 0x54]
mov edx, dword [esp + 0x50]
push esi
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.0041d040
mov eax, dword [ebp + 0xcc]
add esp, 0x10
cmp eax, edi
je 0x426bb0
push eax
call dword [0x461004]
add esp, 4
mov dword [ebp + 0xcc], edi
call fcn.00424f00
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x427343
mov eax, dword [esp + 0x50]
push esi
push eax
push str._s:_d
call fcn.0041f100
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
je 0x427339
push 1
push eax
push str.CONNECT
mov eax, ebx
call fcn.00424bb0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x426d48
mov ecx, dword [esp + 0x48]
cmp dword [ecx + 0xbc], 1
mov esi, 0x451402
mov edi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x4537b4
je 0x426c26
mov dword [esp + 0x20], 0x4537b8
push ebp
mov ebx, str.Host:
call fcn.004246c0
add esp, 4
test eax, eax
jne 0x426c54
mov ebx, dword [esp + 0x14]
push ebx
push str.Host:__s_r_n
call fcn.0041f100
mov edi, eax
add esp, 8
test edi, edi
je 0x427350
push ebp
mov ebx, str.Proxy_Connection:
call fcn.004246c0
add esp, 4
test eax, eax
jne 0x426c6e
mov dword [esp + 0x24], str.Proxy_Connection:_Keep_Alive_r_n
push ebp
mov ebx, str.User_Agent:
call fcn.004246c0
add esp, 4
test eax, eax
jne 0x426c92
cmp dword [ebp + 0x304], eax
je 0x426c92
mov edx, dword [esp + 0x48]
mov esi, dword [edx + 0x150]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x14c]
test eax, eax
jne 0x426ca5
mov eax, 0x451402
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push esi
push eax
movzx eax, word [esp + 0x60]
push edi
push edx
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x34]
push str.CONNECT__s:_d_HTTP__s_r_n_s_s_s_s
call fcn.00425570
add esp, 0x20
test edi, edi
mov esi, eax
je 0x426ce3
cmp byte [edi], 0
je 0x426ce3
push edi
call dword [0x461004]
add esp, 4
test esi, esi
jne 0x426d2e
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x48]
push edi
call fcn.00425630
mov esi, eax
add esp, 4
test esi, esi
jne 0x426d2e
push 0x451880
mov eax, edi
call fcn.00425570
mov esi, eax
add esp, 4
test esi, esi
jne 0x426d2e
push eax
lea ecx, [ebp + 0x8580]
push ecx
mov ecx, dword [esp + 0x54]
mov edx, edi
push edx
mov edi, ebx
call fcn.00424f10
add esp, 0xc
mov esi, eax
test esi, esi
mov dword [esp + 0x18], 0
je 0x426d48
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.0041d0d0
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [0x461004]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00414110
add esp, 8
test esi, esi
jne 0x427372
mov edx, dword [esp + 0x48]
mov byte [edx + 0x135], 1
mov ebx, edx
xor edi, edi
mov eax, dword [ebx + 0xc8]
mov ecx, dword [ebx + 0xc4]
push eax
push ecx
call fcn.00428ff0
push edx
push eax
call fcn.00429020
mov edx, dword [esp + 0x3c]
sub edx, eax
add esp, 0x10
test edx, edx
jle 0x42737c
cmp dword [ebp + 0x450], 2
jne 0x426dc3
mov eax, dword [esp + 0x30]
push edi
push 0xffffffffffffffff
push eax
call fcn.00427830
add esp, 0xc
test eax, eax
je 0x427430
mov ecx, dword [esp + 0x48]
lea eax, [ebp + 0x46c]
mov ebx, eax
xor edi, edi
mov byte [ecx + 0x135], 0
mov dword [esp + 0x20], ebx
mov esi, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 1
mov edi, edi
cmp dword [esp + 0x14], 0
je 0x4272b7
cmp dword [esp + 0x28], 0
jne 0x4273ed
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc8]
mov eax, dword [eax + 0xc4]
push edx
push eax
call fcn.00428ff0
push edx
push eax
call fcn.00429020
mov ecx, dword [esp + 0x3c]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x42731e
cmp ecx, 0x3e8
jl 0x426e42
mov ecx, 0x3e8
push ecx
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push ecx
call fcn.00427830
add esp, 0xc
cmp eax, 0xffffffff
je 0x42727c
test eax, eax
je 0x427292
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x4c]
mov eax, 0x4000
sub eax, edi
push eax
push ebx
push ecx
push edx
call fcn.0041cda0
add esp, 0x14
test eax, eax
jl 0x4272ab
xor ecx, ecx
cmp eax, ecx
je 0x426e9a
mov dword [esp + 0x14], ecx
jmp 0x427292
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jg 0x426ed0
cmp dword [ebp + 0x104], ecx
mov dword [esp + 0x14], ecx
je 0x426ec6
cmp dword [ebp + 0x8504], ecx
je 0x426ec6
mov eax, dword [esp + 0x48]
mov byte [eax + 0x13d], 1
jmp 0x427292
push str.Proxy_CONNECT_aborted
jmp 0x427281
add edi, eax
cmp dword [esp + 0x14], 1
mov dword [esp + 0x24], edi
jle 0x426f76
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
lea ecx, [ebp + 0x46c]
mov ebx, ecx
mov ecx, dword [esp + 0x40]
mov edx, edi
or edx, ecx
mov dword [esp + 0x20], ebx
je 0x426f2b
cdq
sub edi, eax
sbb ecx, edx
test ecx, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
jg 0x427292
jl 0x426f1e
test edi, edi
ja 0x427292
mov dword [esp + 0x14], 0
jmp 0x427292
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
xor edi, edi
push edx
mov dword [esp + 0x44], edi
call fcn.0042b580
add esp, 0x10
cmp eax, 0xffffffff
jne 0x426f5e
push str.chunk_reading_DONE_n
push ebp
call fcn.0041d040
mov dword [esp + 0x1c], edi
jmp 0x42728f
mov eax, dword [esp + 0x34]
push eax
push str.Read__d_bytes_of_chunk__continue_n
push ebp
call fcn.0041d040
add esp, 0xc
jmp 0x427292
xor edi, edi
test eax, eax
mov dword [esp + 0x34], edi
jle 0x427292
jmp 0x426f90
add dword [esp + 0x18], 1
cmp byte [ebx], 0xa
jne 0x427153
cmp byte [ebp + 0x268], 0
je 0x426fbd
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
push 1
push ebp
call fcn.0041cf50
add esp, 0x14
cmp byte [ebp + 0x25b], 0
mov eax, 2
je 0x426fd0
mov eax, 3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
push ecx
push esi
push eax
push edx
call fcn.0041d260
add esp, 0x10
test eax, eax
jne 0x427432
mov al, byte [esi]
cmp al, 0xd
je 0x42716e
cmp al, 0xa
je 0x42716e
mov eax, dword [esp + 0x18]
mov bl, byte [eax + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [eax + esi], 0
call fcn.00429db0
add esp, 0xc
test eax, eax
je 0x42702a
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x42704b
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.00429db0
add esp, 0xc
test eax, eax
je 0x427067
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x427067
push esi
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.00424cb0
add esp, 0xc
test eax, eax
jne 0x427432
jmp 0x427131
push 0xf
push esi
push str.Content_Length:
call fcn.00429db0
add esp, 0xc
test eax, eax
je 0x427098
push 0xa
lea ecx, [esi + 0xf]
push 0
push ecx
call fcn.00435174
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x427131
push str.close
push str.Connection:
push esi
call fcn.00425170
add esp, 0xc
test al, al
je 0x4270b6
mov byte [esp + 0x12], 1
jmp 0x427131
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00425170
add esp, 0xc
test al, al
je 0x4270ec
push str.CONNECT_responded_chunked_n
push ebp
call fcn.0041d040
mov edx, dword [esp + 0x50]
push edx
mov byte [esp + 0x1f], 1
call fcn.0042b560
add esp, 0xc
jmp 0x427131
push str.close
push str.Proxy_Connection:
push esi
call fcn.00425170
add esp, 0xc
test al, al
je 0x42710a
mov byte [esp + 0x12], 1
jmp 0x427131
lea edi, [ebp + 0x90]
push edi
lea eax, [esp + 0x3c]
push eax
push str.HTTP_1._d__d
push esi
call fcn.00434d2f
add esp, 0x10
cmp eax, 2
jne 0x427131
mov ecx, dword [edi]
mov dword [ebp + 0x856c], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov byte [edx + esi], bl
mov ebx, dword [esp + 0x20]
lea esi, [eax + 1]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
add edi, 1
add ebx, 1
cmp edi, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], edi
jl 0x426f90
jmp 0x427292
lea eax, [ebp + 0x46c]
xor ecx, ecx
cmp dword [ebp + 0x90], 0x197
mov ebx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
jne 0x426e91
cmp byte [ebp + 0x850c], cl
jne 0x426e91
mov edx, dword [esp + 0x3c]
or edx, dword [esp + 0x40]
mov dword [esp + 0x14], 2
je 0x4271fd
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
call fcn.0041d040
mov eax, dword [esp + 0x2c]
sub eax, edi
cdq
add esp, 0x10
sub dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
sbb eax, edx
test eax, eax
mov dword [esp + 0x40], eax
jg 0x427292
jl 0x4271f0
cmp dword [esp + 0x3c], 0
ja 0x427292
mov dword [esp + 0x14], 0
jmp 0x427292
cmp byte [esp + 0x13], 0
je 0x426e91
mov edx, dword [esp + 0x1c]
sub edx, edi
push edx
push str._d_bytes_of_chunk_left_n
push ebp
mov byte [ebp + 0xc5], 1
call fcn.0041d040
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x427230
add esi, 1
add edi, 1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x4c]
sub ecx, edi
push ecx
lea edx, [esi + 1]
push edx
push eax
call fcn.0042b580
add esp, 0x10
cmp eax, 0xffffffff
jne 0x427267
push str.chunk_reading_DONE_n
push ebp
call fcn.0041d040
mov dword [esp + 0x1c], 0
jmp 0x42728f
mov ecx, dword [esp + 0x1c]
push ecx
push str.Read__d_bytes_of_chunk__continue_n
push ebp
call fcn.0041d040
add esp, 0xc
jmp 0x427292
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
mov dword [esp + 0x30], 1
call fcn.0041d0d0
add esp, 8
mov edx, dword [esp + 0x48]
push edx
call fcn.00429600
add esp, 4
test eax, eax
jne 0x42738c
mov edi, dword [esp + 0x24]
cmp edi, 0x4000
jb 0x426df0
cmp dword [esp + 0x28], 0
jne 0x4273ed
cmp dword [ebp + 0x856c], 0xc8
mov esi, dword [esp + 0x48]
je 0x4272f2
push esi
call fcn.004253c0
add esp, 4
test eax, eax
jne 0x427432
cmp byte [esi + 0x128], al
je 0x4272f2
mov byte [esp + 0x12], 1
jmp 0x4272f9
cmp byte [esp + 0x12], 0
je 0x427306
cmp dword [ebp + 0xcc], 0
jne 0x427399
cmp dword [ebp + 0xcc], 0
je 0x4273b6
mov ebx, dword [esp + 0x48]
xor edi, edi
jmp 0x426b70
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.0041d0d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
push edi
call dword [0x461004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x18]
push eax
call dword [0x461004]
push ebx
call dword [0x461004]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.0041d0d0
add esp, 8
jmp 0x4273b6
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
mov edi, dword [esp + 0x4c]
mov ecx, dword [esi + edi*4 + 0xd4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + edi*4 + 0xd4], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x4273fa
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.0041d0d0
add esp, 0xc
cmp byte [esp + 0x12], 0
je 0x4273ed
cmp dword [ebp + 0xcc], 0
je 0x4273ed
mov edx, dword [esp + 0x48]
mov byte [edx + 0x13d], 1
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x14c]
push eax
call fcn.00414110
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esi + 0x14c], 0
push ebp
mov byte [ebp + 0x8508], 1
call fcn.0041d040
add esp, 0xc
mov byte [ebp + 0xc5], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret