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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x4c]
mov ebx, dword [edi]
xor ebp, ebp
mov dword [esp + 0x3c], ebp
mov eax, dword [ebx + 0x1d4]
mov dword [esp + 0x30], eax
cmp eax, ebp
jne 0x426f48
mov dword [esp + 0x30], 0x36ee80
mov eax, dword [esp + 0x50]
cmp dword [edi + eax*4 + 0x484], 2
mov ecx, dword [edi + eax*4 + 0x130]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ebp
jne 0x426f7e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [edi + 0x1f8], ebp
push esi
jmp 0x426f90
cmp dword [edi + eax*4 + 0x484], ebp
jne 0x4271b0
movzx esi, word [esp + 0x5c]
mov edx, dword [esp + 0x58]
push esi
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebx
call fcn.0040e940
mov eax, dword [ebx + 0x10c]
add esp, 0x10
cmp eax, ebp
je 0x426fcf
push eax
call fcn.00430c37
add esp, 4
mov dword [ebx + 0x10c], ebp
call fcn.00421d10
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x4277be
mov eax, dword [esp + 0x58]
push esi
push eax
push str._s:_hu
call fcn.00411920
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42777b
mov ecx, dword [esp + 0x50]
push 1
push edi
push str.CONNECT
push ecx
call fcn.00421950
push edi
mov esi, eax
call fcn.00430c37
add esp, 0x14
test esi, esi
jne 0x42774d
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x114], 1
mov ebp, 0x448790
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0x44d758
je 0x42704e
mov dword [esp + 0x18], 0x44d75c
mov eax, dword [esi + 0x1b8]
mov edx, 0x448920
test eax, eax
jne 0x4272c7
mov edx, ebp
mov eax, ebp
movzx ecx, word [esp + 0x5c]
push ecx
push edx
mov edx, dword [esp + 0x60]
push edx
push eax
push str._s_s_s:_hu
call fcn.00411920
mov edi, eax
add esp, 0x14
test edi, edi
je 0x427791
push str.Host:
push ebx
call fcn.00421410
add esp, 8
test eax, eax
jne 0x4270b3
push edi
push str.Host:__s_r_n
call fcn.00411920
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4277ab
push str.Proxy_Connection:
push ebx
call fcn.00421410
add esp, 8
test eax, eax
jne 0x4270cd
mov dword [esp + 0x24], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.00421410
add esp, 8
test eax, eax
jne 0x4270f1
cmp dword [ebx + 0x3dc], eax
je 0x4270f1
mov eax, dword [esi + 0x22c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x228]
test eax, eax
jne 0x427100
mov eax, 0x448790
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x24]
push ebp
push eax
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.00422580
add esp, 0x20
mov esi, eax
test ebp, ebp
je 0x427139
cmp byte [ebp], 0
je 0x427139
push ebp
call fcn.00430c37
add esp, 4
push edi
call fcn.00430c37
add esp, 4
test esi, esi
jne 0x427735
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
push ebp
push edi
call fcn.00422680
mov esi, eax
add esp, 8
test esi, esi
jne 0x427735
push 0x448c5c
push ebp
call fcn.00422580
mov esi, eax
add esp, 8
test esi, esi
jne 0x427735
mov ebp, dword [esp + 0x54]
push ebp
push eax
mov eax, dword [esp + 0x30]
lea edx, [ebx + 0x86fc]
push edx
push edi
push eax
call fcn.00421d20
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x427735
mov dword [edi + ebp*4 + 0x484], 1
xor ebp, ebp
mov ecx, dword [edi + 0x124]
mov edx, dword [edi + 0x120]
push ecx
push edx
call fcn.004130d0
push edx
push eax
call fcn.00413100
mov ecx, dword [esp + 0x44]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x4277cb
cmp dword [ebx + 0x578], 2
jne 0x4271fe
mov edx, dword [esp + 0x38]
push ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004250a0
add esp, 0x10
test eax, eax
je 0x4278a9
lea esi, [ebx + 0x594]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], 1
jmp 0x427220
cmp dword [esp + 0x14], ebp
je 0x4276d5
cmp dword [esp + 0x30], ebp
jne 0x427854
mov eax, dword [edi + 0x124]
mov ecx, dword [edi + 0x120]
push eax
push ecx
call fcn.004130d0
push edx
push eax
call fcn.00413100
mov ecx, dword [esp + 0x44]
sub ecx, eax
add esp, 0x10
cmp ecx, ebp
jle 0x427760
cmp ecx, 0x3e8
jl 0x42726c
mov ecx, 0x3e8
mov edx, dword [esp + 0x38]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004250a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4276a0
cmp eax, ebp
je 0x4276b6
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
mov ecx, 0x4000
sub ecx, dword [esp + 0x2c]
push ecx
push edx
push eax
push edi
call fcn.0040e670
add esp, 0x14
cmp eax, 0x51
je 0x4276c7
cmp eax, ebp
je 0x4272d1
mov dword [esp + 0x14], ebp
jmp 0x4276b6
mov eax, 0x448904
jmp 0x427065
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jg 0x427306
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x150], ebp
je 0x4272fc
cmp dword [ebx + 0x8634], ebp
je 0x4272fc
mov dword [edi + 0x1f8], 1
jmp 0x4276b6
push str.Proxy_CONNECT_aborted
jmp 0x4276a5
add dword [esp + 0x28], eax
mov edx, 1
cmp dword [esp + 0x14], edx
jle 0x4273a6
lea ecx, [ebx + 0x594]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
or ecx, dword [esp + 0x48]
mov dword [esp + 0x28], ebp
je 0x42735d
cdq
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
mov dword [esp + 0x48], eax
cmp eax, ebp
jg 0x4276b6
jl 0x427354
cmp dword [esp + 0x44], ebp
ja 0x4276b6
mov dword [esp + 0x14], ebp
jmp 0x4276b6
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push edi
mov dword [esp + 0x30], ebp
call fcn.00429810
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42738e
push str.chunk_reading_DONE_n
push ebx
call fcn.0040e940
mov dword [esp + 0x1c], ebp
jmp 0x4276b3
mov ecx, dword [esp + 0x20]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.0040e940
add esp, 0xc
jmp 0x4276b6
mov dword [esp + 0x20], ebp
cmp eax, ebp
jle 0x4276b6
mov ecx, dword [esp + 0x18]
add dword [esp + 0x24], edx
cmp byte [ecx], 0xa
jne 0x42757a
cmp dword [ebx + 0x31c], ebp
je 0x4273dd
mov edx, dword [esp + 0x24]
push edi
push edx
push esi
push 1
push ebx
call fcn.0040e7b0
add esp, 0x14
mov eax, 2
cmp dword [ebx + 0x300], ebp
je 0x4273ef
mov eax, 3
mov ecx, dword [esp + 0x24]
push ecx
push esi
push eax
push edi
call fcn.0040ee10
add esp, 0x10
cmp eax, ebp
jne 0x4278ab
mov al, byte [esi]
cmp al, 0xd
je 0x427595
cmp al, 0xa
je 0x427595
mov eax, dword [esp + 0x24]
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.00427c20
add esp, 0xc
test eax, eax
je 0x427449
mov eax, dword [ebx + 0x90]
cmp eax, 0x191
je 0x42746a
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.00427c20
add esp, 0xc
test eax, eax
je 0x427482
mov eax, dword [ebx + 0x90]
cmp eax, 0x197
jne 0x427482
push esi
push eax
push edi
call fcn.00421a60
add esp, 0xc
cmp eax, ebp
jne 0x4278ab
jmp 0x427553
push 0xf
push esi
push str.Content_Length:
call fcn.00427c20
add esp, 0xc
test eax, eax
je 0x4274b2
push 0xa
lea eax, [esi + 0xf]
push ebp
push eax
call fcn.00434447
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x427553
push str.close
push str.Connection:
push esi
call fcn.00421fc0
add esp, 0xc
test eax, eax
je 0x4274d6
mov dword [esp + 0x2c], 1
jmp 0x427553
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00421fc0
add esp, 0xc
test eax, eax
je 0x42750b
push str.CONNECT_responded_chunked_n
push ebx
call fcn.0040e940
push edi
mov dword [esp + 0x48], 1
call fcn.004297f0
add esp, 0xc
jmp 0x427553
push str.close
push str.Proxy_Connection:
push esi
call fcn.00421fc0
add esp, 0xc
test eax, eax
je 0x42752c
mov dword [esp + 0x2c], 1
jmp 0x427553
lea edi, [ebx + 0x90]
push edi
lea ecx, [esp + 0x44]
push ecx
push str.HTTP_1._d__d
push esi
call fcn.004331c6
add esp, 0x10
cmp eax, 2
jne 0x427553
mov edx, dword [edi]
mov dword [ebx + 0x86e8], edx
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
mov byte [ecx + esi], al
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x24], 0
xor ebp, ebp
mov edx, 1
mov ecx, dword [esp + 0x20]
add dword [esp + 0x18], edx
add ecx, edx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x4273b2
jmp 0x4276b6
cmp dword [ebx + 0x90], 0x197
lea eax, [ebx + 0x594]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
jne 0x427672
cmp dword [ebx + 0x8644], ebp
jne 0x427672
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
mov dword [esp + 0x14], 2
je 0x4275f6
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebx
call fcn.0040e940
mov eax, dword [esp + 0x2c]
add esp, 0x10
sub eax, dword [esp + 0x20]
jmp 0x427331
cmp dword [esp + 0x3c], ebp
je 0x427354
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
mov dword [ebx + 0x100], 1
push eax
push str._zd_bytes_of_chunk_left_n
push ebx
call fcn.0040e940
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x42762c
inc esi
inc dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esi + 1]
push eax
push edi
call fcn.00429810
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42765d
push str.chunk_reading_DONE_n
push ebx
call fcn.0040e940
mov dword [esp + 0x1c], ebp
jmp 0x4276b3
mov ecx, dword [esp + 0x1c]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.0040e940
add esp, 0xc
jmp 0x4276b6
cmp dword [ebx + 0x86e8], 0xc8
mov dword [esp + 0x14], ebp
jne 0x4276b6
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
dec eax
cmp eax, ebp
je 0x4276b6
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push ebx
call fcn.0040e9d0
add esp, 0xc
jmp 0x4276b6
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebx
mov dword [esp + 0x38], 1
call fcn.0040e9d0
add esp, 8
push edi
call fcn.004267b0
add esp, 4
test eax, eax
jne 0x4277e6
cmp dword [esp + 0x28], 0x4000
jb 0x427220
cmp dword [esp + 0x30], ebp
jne 0x427854
cmp dword [ebx + 0x86e8], 0xc8
je 0x42770e
push edi
call fcn.004223b0
add esp, 4
cmp eax, ebp
jne 0x4278ab
cmp dword [edi + 0x1a0], ebp
je 0x42770e
mov dword [esp + 0x2c], 1
jmp 0x427714
cmp dword [esp + 0x2c], ebp
je 0x427720
cmp dword [ebx + 0x10c], ebp
jne 0x4277f3
cmp dword [ebx + 0x10c], ebp
je 0x427815
mov eax, dword [esp + 0x54]
jmp 0x426f90
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.0040e9d0
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret
push ebp
call fcn.00430c37
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.0040e9d0
add esp, 8
pop esi
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
push ebp
call fcn.00430c37
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x28]
push edx
call fcn.00430c37
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
push edi
call fcn.00430c37
mov eax, dword [esp + 0x2c]
push eax
call fcn.00430c37
add esp, 8
pop esi
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.0040e9d0
add esp, 8
pop esi
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
pop esi
pop edi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x3c
ret
mov esi, dword [esp + 0x54]
mov ecx, dword [edi + esi*4 + 0x130]
push ecx
push edi
call fcn.0040f890
add esp, 8
mov dword [edi + esi*4 + 0x130], 0xffffffff
jmp 0x427819
mov esi, dword [esp + 0x54]
mov eax, dword [ebx + 0x90]
cmp eax, 0xc8
je 0x427861
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.0040e9d0
add esp, 0xc
cmp dword [esp + 0x2c], ebp
je 0x42784d
cmp dword [ebx + 0x10c], ebp
je 0x42784d
mov dword [edi + 0x1f8], 1
mov dword [edi + esi*4 + 0x484], ebp
pop esi
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
mov dword [edi + esi*4 + 0x484], 2
mov eax, dword [edi + 0x228]
cmp eax, ebp
je 0x427885
push eax
call fcn.00430c37
add esp, 4
mov dword [edi + 0x228], ebp
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x228], ebp
push ebx
mov dword [ebx + 0x8638], 1
call fcn.0040e940
add esp, 8
mov dword [ebx + 0x100], ebp
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x3c
ret