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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 0x40], 0
mov ecx, 0x36ee80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
mov esi, dword [edi]
mov eax, dword [esi + 0x19c]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov ebx, dword [edi + eax*4 + 0x130]
xor eax, eax
and dword [ebp - 0x24], eax
and dword [edi + 0x1f4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x1d0], 0
jne 0x4632dd
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.0044d931
mov eax, dword [esi + 0xd4]
add esp, 0x10
test eax, eax
je 0x463133
push eax
call fcn.004673d5
and dword [esi + 0xd4], 0
pop ecx
call fcn.00455472
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x463825
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str._s:_hu
call fcn.0044f122
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
je 0x463833
push 1
push eax
push str.CONNECT
push edi
call fcn.00455c58
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4632b1
cmp dword [edi + 0x114], 1
mov eax, 0x497fec
mov ebx, eax
mov dword [ebp - 0x20], eax
mov ecx, 0x48ddfc
mov dword [ebp - 0x1c], ebx
mov eax, 0x48de00
cmovne eax, ecx
push str.Host:
push esi
mov dword [ebp - 8], eax
call fcn.0045588b
pop ecx
pop ecx
test eax, eax
jne 0x4631d1
push dword [ebp - 0x30]
push str.Host:__s_r_n
call fcn.0044f122
mov ebx, eax
mov dword [ebp - 0x1c], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x463813
push str.Proxy_Connection:
push esi
call fcn.0045588b
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x497fec
cmovne ecx, eax
push str.User_Agent:
push esi
mov dword [ebp - 0xc], ecx
call fcn.0045588b
add esp, 0x10
test eax, eax
jne 0x463211
cmp dword [esi + 0x3a0], eax
je 0x463211
mov eax, dword [edi + 0x228]
mov dword [ebp - 0x20], eax
push dword [ebp - 0xc]
mov eax, dword [edi + 0x224]
mov ecx, 0x497fec
push dword [ebp - 0x20]
test eax, eax
cmovne ecx, eax
movzx eax, word [ebp + 0x14]
push ecx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp + 0x10]
push str.CONNECT__s:_hu_HTTP__s_r_n_s_s_s_s
push dword [ebp + 8]
call fcn.0045561c
mov ebx, eax
add esp, 0x24
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x463259
cmp byte [eax], 0
je 0x463259
push eax
call fcn.004673d5
pop ecx
test ebx, ebx
jne 0x46329c
push dword [ebp + 8]
push edi
call fcn.0045567d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46329c
push 0x498588
push dword [ebp + 8]
call fcn.0045561c
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46329c
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x86a4]
push eax
push edi
push dword [ebp + 8]
call fcn.0045547f
add esp, 0x14
mov ebx, eax
and dword [ebp + 8], 0
test ebx, ebx
je 0x4632b1
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0044d89b
pop ecx
pop ecx
push dword [ebp - 0x30]
call fcn.004673d5
mov eax, dword [ebp + 8]
pop ecx
test eax, eax
je 0x4632c8
push eax
call fcn.004673d5
pop ecx
test ebx, ebx
jne 0x46382c
mov ebx, dword [ebp - 0x2c]
mov dword [edi + 0x1d0], 1
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.00450695
push edx
push eax
call fcn.0045063f
mov ecx, dword [ebp - 0x38]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4638d3
cmp dword [esi + 0x520], 2
jne 0x463323
push 0
push 0xffffffffffffffff
push ebx
call fcn.004581ae
add esp, 0xc
test eax, eax
je 0x4638cf
and dword [edi + 0x1d0], 0
lea eax, [esi + 0x53c]
and dword [ebp - 0x20], 0
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0xc], eax
inc ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4636a5
cmp dword [ebp - 0x24], 0
jne 0x4638e0
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.00450695
push edx
push eax
call fcn.0045063f
mov ecx, dword [ebp - 0x38]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4637da
mov edx, 0x3e8
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.004581ae
add esp, 0xc
cmp eax, 0xffffffff
je 0x4637d0
test eax, eax
je 0x463689
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push edi
call fcn.0044d9a6
add esp, 0x14
cmp eax, 0x51
je 0x463698
test eax, eax
jne 0x46345f
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jg 0x463417
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x118], ebx
je 0x4633ff
cmp dword [esi + 0x85dc], ebx
je 0x4633ff
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x463689
push str.Proxy_CONNECT_aborted
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x24], eax
call fcn.0044d89b
pop ecx
pop ecx
jmp 0x463689
add dword [ebp - 0x20], ecx
xor eax, eax
inc eax
cmp ebx, eax
jle 0x4634a6
mov eax, dword [ebp - 0x10]
lea edx, [esi + 0x53c]
and dword [ebp - 0x20], 0
or eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
je 0x463469
mov eax, ecx
mov ecx, dword [ebp - 0x10]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
sbb eax, edx
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x463689
jl 0x46345f
test ecx, ecx
jne 0x463689
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x463689
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push edi
call fcn.00453a9d
add esp, 0x10
cmp eax, 0xffffffff
jne 0x463490
push str.chunk_reading_DONE_n
push esi
call fcn.0044d931
pop ecx
pop ecx
jmp 0x46345f
push dword [ebp + 8]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0044d931
add esp, 0xc
jmp 0x463689
xor ebx, ebx
mov dword [ebp - 0x30], ebx
test ecx, ecx
jle 0x463686
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
inc edx
cmp byte [eax], 0xa
mov dword [ebp - 0x1c], edx
jne 0x463676
cmp dword [esi + 0x2e4], 0
je 0x4634e4
push edi
push edx
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
push esi
call fcn.0044d7d5
mov edx, dword [ebp - 0x1c]
add esp, 0x14
cmp dword [esi + 0x2c8], 0
push 2
pop eax
push 3
pop ecx
push edx
push dword [ebp - 4]
cmovne eax, ecx
push eax
push edi
call fcn.0044d69e
add esp, 0x10
test eax, eax
jne 0x4638e3
mov ecx, dword [ebp - 4]
mov al, byte [ecx]
cmp al, 0xd
je 0x4636e6
cmp al, 0xa
je 0x4636e6
mov edx, dword [ebp - 0x1c]
push 0x11
push ecx
push str.WWW_Authenticate:
mov al, byte [edx + ecx]
mov byte [ebp + 0xb], al
mov byte [edx + ecx], 0
call fcn.0045035c
add esp, 0xc
test eax, eax
je 0x46354d
mov eax, dword [esi + 0x90]
cmp eax, 0x191
je 0x463570
push 0x13
push dword [ebp - 4]
push str.Proxy_authenticate:
call fcn.0045035c
add esp, 0xc
test eax, eax
je 0x46358a
mov eax, dword [esi + 0x90]
cmp eax, 0x197
jne 0x46358a
push dword [ebp - 4]
push eax
push edi
call fcn.00455b20
add esp, 0xc
test eax, eax
jne 0x4638e3
jmp 0x463658
push 0xf
push dword [ebp - 4]
push str.Content_Length:
call fcn.0045035c
add esp, 0xc
test eax, eax
je 0x4635be
mov eax, dword [ebp - 4]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.0046ee27
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
jmp 0x463658
push str.close
push str.Connection:
push dword [ebp - 4]
call fcn.004558cd
add esp, 0xc
test eax, eax
jne 0x463625
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 4]
call fcn.004558cd
add esp, 0xc
test eax, eax
je 0x46360c
push str.CONNECT_responded_chunked_n
push esi
call fcn.0044d931
xor eax, eax
inc eax
push edi
mov dword [ebp - 0x3c], eax
call fcn.00453a86
add esp, 0xc
jmp 0x463658
push str.close
push str.Proxy_Connection:
push dword [ebp - 4]
call fcn.004558cd
add esp, 0xc
test eax, eax
je 0x46362d
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x463658
lea ebx, [esi + 0x90]
push ebx
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1._d__d
push dword [ebp - 4]
call fcn.0046e719
add esp, 0x10
cmp eax, 2
jne 0x463655
mov eax, dword [ebx]
mov dword [esi + 0x8690], eax
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp + 0xb]
mov byte [edx + ecx], al
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
inc eax
inc ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ebx
cmp ebx, ecx
jl 0x4634b9
mov ebx, dword [ebp - 8]
push edi
call fcn.004574c1
pop ecx
test eax, eax
jne 0x46383b
cmp dword [ebp - 0x20], 0x4000
jb 0x463345
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4638e0
cmp dword [esi + 0x8690], 0xc8
je 0x4637f2
push edi
call fcn.00455970
pop ecx
test eax, eax
jne 0x4638e3
cmp dword [edi + 0x198], eax
mov ebx, dword [ebp - 0x28]
push 1
pop eax
cmovne ebx, eax
mov dword [ebp - 0x28], ebx
jmp 0x4637f5
and dword [ebp - 0x20], 0
lea eax, [esi + 0x53c]
cmp dword [esi + 0x90], 0x197
mov dword [ebp - 0xc], eax
jne 0x46345f
cmp dword [esi + 0x85ec], 0
jne 0x46345f
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov edx, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 8], 2
je 0x463764
push edx
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push esi
call fcn.0044d931
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
sub eax, ebx
cdq
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
sbb eax, edx
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x463686
jl 0x46345f
test ecx, ecx
jne 0x463686
jmp 0x46345f
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x46345f
xor eax, eax
inc eax
mov dword [esi + 0xc8], eax
mov eax, dword [ebp - 0x18]
sub eax, ebx
push eax
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.0044d931
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
cmp byte [eax], 0xa
jne 0x463799
mov dword [ebp - 4], eax
inc ebx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
call fcn.00453a9d
add esp, 0x10
cmp eax, 0xffffffff
je 0x463481
push dword [ebp - 0x18]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0044d931
add esp, 0xc
jmp 0x463686
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x463404
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0044d89b
pop ecx
pop ecx
push 2
pop eax
mov dword [ebp - 0x24], eax
jmp 0x4636a8
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x463802
cmp dword [esi + 0xd4], 0
jne 0x463842
cmp dword [esi + 0xd4], 0
je 0x46385f
mov ebx, dword [ebp - 0x2c]
jmp 0x4630f8
push dword [ebp + 8]
call fcn.004673d5
push dword [ebp - 0x30]
call fcn.004673d5
pop ecx
pop ecx
push 0x1b
jmp 0x4638e2
mov eax, ebx
jmp 0x4638e3
push ebx
call fcn.004673d5
jmp 0x463824
push 0x2a
jmp 0x4638e2
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x130]
push edi
call fcn.0044ddba
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
or dword [edi + eax*4 + 0x130], 0xffffffff
mov eax, dword [esi + 0x90]
cmp eax, 0xc8
je 0x463893
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0044d89b
add esp, 0xc
test ebx, ebx
je 0x4638e0
cmp dword [esi + 0xd4], 0
je 0x4638e0
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x4638e0
mov eax, dword [edi + 0x224]
test eax, eax
je 0x4638ab
push eax
call fcn.004673d5
and dword [edi + 0x224], 0
pop ecx
and dword [edi + 0x224], 0
xor eax, eax
inc eax
push str.Proxy_replied_OK_to_CONNECT_request_n
push esi
mov dword [esi + 0x85e0], eax
call fcn.0044d931
and dword [esi + 0xc8], 0
pop ecx
pop ecx
xor eax, eax
jmp 0x4638e3
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0044d89b
pop ecx
pop ecx
push 0x38
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret