Function at 0x440fcd
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 0x441209
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.0042b712
mov eax, dword [esi + 0xd4]
add esp, 0x10
test eax, eax
je 0x44105f
push eax
call fcn.00452ae3
and dword [esi + 0xd4], 0
pop ecx
call fcn.00433293
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
je 0x44175b
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str._s:_hu
call fcn.0042cf22
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
je 0x441769
push 1
push eax
push str.CONNECT
push edi
call fcn.00433a7d
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4411dd
cmp dword [edi + 0x114], 1
mov eax, 0x489071
mov ebx, eax
mov dword [ebp - 0x20], eax
mov ecx, 0x479734
mov dword [ebp - 0x1c], ebx
mov eax, 0x479738
cmovne eax, ecx
push str.Host:
push esi
mov dword [ebp - 8], eax
call fcn.004336b0
pop ecx
pop ecx
test eax, eax
jne 0x4410fd
push dword [ebp - 0x30]
push str.Host:__s_r_n
call fcn.0042cf22
mov ebx, eax
mov dword [ebp - 0x1c], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x441749
push str.Proxy_Connection:
push esi
call fcn.004336b0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x489071
cmovne ecx, eax
push str.User_Agent:
push esi
mov dword [ebp - 0xc], ecx
call fcn.004336b0
add esp, 0x10
test eax, eax
jne 0x44113d
cmp dword [esi + 0x3a0], eax
je 0x44113d
mov eax, dword [edi + 0x228]
mov dword [ebp - 0x20], eax
push dword [ebp - 0xc]
mov eax, dword [edi + 0x224]
mov ecx, 0x489071
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.0043343d
mov ebx, eax
add esp, 0x24
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x441185
cmp byte [eax], 0
je 0x441185
push eax
call fcn.00452ae3
pop ecx
test ebx, ebx
jne 0x4411c8
push dword [ebp + 8]
push edi
call fcn.0043349e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4411c8
push 0x489430
push dword [ebp + 8]
call fcn.0043343d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4411c8
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x86a4]
push eax
push edi
push dword [ebp + 8]
call fcn.004332a0
add esp, 0x14
mov ebx, eax
and dword [ebp + 8], 0
test ebx, ebx
je 0x4411dd
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0042b67c
pop ecx
pop ecx
push dword [ebp - 0x30]
call fcn.00452ae3
mov eax, dword [ebp + 8]
pop ecx
test eax, eax
je 0x4411f4
push eax
call fcn.00452ae3
pop ecx
test ebx, ebx
jne 0x441762
mov ebx, dword [ebp - 0x2c]
mov dword [edi + 0x1d0], 1
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.0042e4cd
push edx
push eax
call fcn.0042e477
mov ecx, dword [ebp - 0x38]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x441809
cmp dword [esi + 0x520], 2
jne 0x44124f
push 0
push 0xffffffffffffffff
push ebx
call fcn.00435ff9
add esp, 0xc
test eax, eax
je 0x441805
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 0x4415db
cmp dword [ebp - 0x24], 0
jne 0x441816
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.0042e4cd
push edx
push eax
call fcn.0042e477
mov ecx, dword [ebp - 0x38]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x441710
mov edx, 0x3e8
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.00435ff9
add esp, 0xc
cmp eax, 0xffffffff
je 0x441706
test eax, eax
je 0x4415bf
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.0042b787
add esp, 0x14
cmp eax, 0x51
je 0x4415ce
test eax, eax
je 0x441309
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x4415bf
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jg 0x44134b
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x118], ebx
je 0x441333
cmp dword [esi + 0x85dc], ebx
je 0x441333
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x4415bf
push str.Proxy_CONNECT_aborted
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x24], eax
call fcn.0042b67c
pop ecx
pop ecx
jmp 0x4415bf
add dword [ebp - 0x20], ecx
xor eax, eax
inc eax
cmp ebx, eax
jle 0x4413dc
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 0x44139c
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 0x4415bf
jl 0x4412ff
test ecx, ecx
jne 0x4415bf
jmp 0x4412ff
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push edi
call fcn.004318db
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4413c6
push str.chunk_reading_DONE_n
push esi
call fcn.0042b712
pop ecx
pop ecx
jmp 0x4412ff
push dword [ebp + 8]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0042b712
add esp, 0xc
jmp 0x4415bf
xor ebx, ebx
mov dword [ebp - 0x30], ebx
test ecx, ecx
jle 0x4415bc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
inc edx
cmp byte [eax], 0xa
mov dword [ebp - 0x1c], edx
jne 0x4415ac
cmp dword [esi + 0x2e4], 0
je 0x44141a
push edi
push edx
push dword [ebp - 4]
xor eax, eax
inc eax
push eax
push esi
call fcn.0042b5a6
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.0042b46f
add esp, 0x10
test eax, eax
jne 0x441819
mov ecx, dword [ebp - 4]
mov al, byte [ecx]
cmp al, 0xd
je 0x44161c
cmp al, 0xa
je 0x44161c
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.0042e192
add esp, 0xc
test eax, eax
je 0x441483
mov eax, dword [esi + 0x90]
cmp eax, 0x191
je 0x4414a6
push 0x13
push dword [ebp - 4]
push str.Proxy_authenticate:
call fcn.0042e192
add esp, 0xc
test eax, eax
je 0x4414c0
mov eax, dword [esi + 0x90]
cmp eax, 0x197
jne 0x4414c0
push dword [ebp - 4]
push eax
push edi
call fcn.00433945
add esp, 0xc
test eax, eax
jne 0x441819
jmp 0x44158e
push 0xf
push dword [ebp - 4]
push str.Content_Length:
call fcn.0042e192
add esp, 0xc
test eax, eax
je 0x4414f4
mov eax, dword [ebp - 4]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.0045af40
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
jmp 0x44158e
push str.close
push str.Connection:
push dword [ebp - 4]
call fcn.004336f2
add esp, 0xc
test eax, eax
jne 0x44155b
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 4]
call fcn.004336f2
add esp, 0xc
test eax, eax
je 0x441542
push str.CONNECT_responded_chunked_n
push esi
call fcn.0042b712
xor eax, eax
inc eax
push edi
mov dword [ebp - 0x3c], eax
call fcn.004318c4
add esp, 0xc
jmp 0x44158e
push str.close
push str.Proxy_Connection:
push dword [ebp - 4]
call fcn.004336f2
add esp, 0xc
test eax, eax
je 0x441563
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x44158e
lea ebx, [esi + 0x90]
push ebx
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1._d__d
push dword [ebp - 4]
call fcn.00423c04
add esp, 0x10
cmp eax, 2
jne 0x44158b
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 0x4413ef
mov ebx, dword [ebp - 8]
push edi
call fcn.004352fc
pop ecx
test eax, eax
jne 0x441771
cmp dword [ebp - 0x20], 0x4000
jb 0x441271
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x441816
cmp dword [esi + 0x8690], 0xc8
je 0x441728
push edi
call fcn.00433795
pop ecx
test eax, eax
jne 0x441819
cmp dword [edi + 0x198], eax
mov ebx, dword [ebp - 0x28]
push 1
pop eax
cmovne ebx, eax
mov dword [ebp - 0x28], ebx
jmp 0x44172b
and dword [ebp - 0x20], 0
lea eax, [esi + 0x53c]
cmp dword [esi + 0x90], 0x197
mov dword [ebp - 0xc], eax
jne 0x4412ff
cmp dword [esi + 0x85ec], 0
jne 0x4412ff
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov edx, dword [ebp - 0x14]
or eax, edx
mov dword [ebp - 8], 2
je 0x44169a
push edx
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push esi
call fcn.0042b712
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 0x4415bc
jl 0x4412ff
test ecx, ecx
jne 0x4415bc
jmp 0x4412ff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4412ff
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.0042b712
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
cmp byte [eax], 0xa
jne 0x4416cf
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.004318db
add esp, 0x10
cmp eax, 0xffffffff
je 0x4413b4
push dword [ebp - 0x18]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0042b712
add esp, 0xc
jmp 0x4415bc
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x441338
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0042b67c
pop ecx
pop ecx
push 2
pop eax
mov dword [ebp - 0x24], eax
jmp 0x4415de
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x441738
cmp dword [esi + 0xd4], 0
jne 0x441778
cmp dword [esi + 0xd4], 0
je 0x441795
mov ebx, dword [ebp - 0x2c]
jmp 0x441024
push dword [ebp + 8]
call fcn.00452ae3
push dword [ebp - 0x30]
call fcn.00452ae3
pop ecx
pop ecx
push 0x1b
jmp 0x441818
mov eax, ebx
jmp 0x441819
push ebx
call fcn.00452ae3
jmp 0x44175a
push 0x2a
jmp 0x441818
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x130]
push edi
call fcn.0042bb9b
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 0x4417c9
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0042b67c
add esp, 0xc
test ebx, ebx
je 0x441816
cmp dword [esi + 0xd4], 0
je 0x441816
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x441816
mov eax, dword [edi + 0x224]
test eax, eax
je 0x4417e1
push eax
call fcn.00452ae3
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.0042b712
and dword [esi + 0xc8], 0
pop ecx
pop ecx
xor eax, eax
jmp 0x441819
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0042b67c
pop ecx
pop ecx
push 0x38
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret