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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 0x44], 0
mov ecx, 0x36ee80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov esi, dword [edi]
mov eax, dword [esi + 0x19c]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov ebx, dword [edi + eax*4 + 0x130]
xor eax, eax
and dword [ebp - 0x28], eax
and dword [edi + 0x1f4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x1d0], 0
jne 0x440b86
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.0042b04a
mov eax, dword [esi + 0xd4]
add esp, 0x10
test eax, eax
je 0x4409e4
push eax
call fcn.00452146
and dword [esi + 0xd4], 0
pop ecx
call fcn.00432c1a
mov ebx, eax
test ebx, ebx
je 0x4410d4
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str._s:_hu
call fcn.0042c85e
add esp, 0xc
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4410e2
push 1
push eax
push str.CONNECT
push edi
call fcn.004333fa
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x440b5a
mov edi, dword [ebp + 8]
mov eax, 0x48c831
mov dword [ebp - 0x24], eax
mov ecx, 0x47973c
mov dword [ebp - 0x20], eax
mov eax, 0x479740
push str.Host:
cmp dword [edi + 0x114], 1
push esi
cmovne eax, ecx
mov dword [ebp - 0xc], eax
call fcn.00433036
pop ecx
pop ecx
test eax, eax
jne 0x440a7e
push dword [ebp - 0x34]
push str.Host:__s_r_n
call fcn.0042c85e
mov dword [ebp - 0x24], eax
pop ecx
pop ecx
test eax, eax
je 0x4410c4
push str.Proxy_Connection:
push esi
call fcn.00433036
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x48c831
cmovne ecx, eax
push str.User_Agent:
push esi
mov dword [ebp - 0x10], ecx
call fcn.00433036
add esp, 0x10
test eax, eax
jne 0x440abe
cmp dword [esi + 0x3a0], eax
je 0x440abe
mov eax, dword [edi + 0x228]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x10]
mov eax, dword [edi + 0x224]
mov ecx, 0x48c831
push dword [ebp - 0x20]
test eax, eax
cmovne ecx, eax
movzx eax, word [ebp + 0x14]
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push str.CONNECT__s:_hu_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.00432dc4
mov edi, eax
add esp, 0x24
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x440b06
cmp byte [eax], 0
je 0x440b06
push eax
call fcn.00452146
pop ecx
test edi, edi
jne 0x440b47
push ebx
push dword [ebp + 8]
call fcn.00432e25
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x440b47
push 0x48cbf0
push ebx
call fcn.00432dc4
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x440b47
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x86a4]
push eax
push dword [ebp + 8]
push ebx
call fcn.00432c27
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x440b5a
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0042afb4
pop ecx
pop ecx
push dword [ebp - 0x34]
call fcn.00452146
pop ecx
test ebx, ebx
je 0x440b6e
push ebx
call fcn.00452146
pop ecx
test edi, edi
jne 0x4410db
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x30]
mov dword [edi + 0x1d0], 1
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.0042de09
push edx
push eax
call fcn.0042ddb3
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x441182
cmp dword [esi + 0x520], 2
jne 0x440bcc
push 0
push 0xffffffffffffffff
push ebx
call fcn.0043596b
add esp, 0xc
test eax, eax
je 0x44117e
and dword [edi + 0x1d0], 0
lea eax, [esi + 0x53c]
and dword [ebp - 0x24], 0
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x10], eax
inc ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x440f56
cmp dword [ebp - 0x28], 0
jne 0x44118f
push dword [edi + 0x124]
push dword [edi + 0x120]
call fcn.0042de09
push edx
push eax
call fcn.0042ddb3
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x44108b
mov edx, 0x3e8
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.0043596b
add esp, 0xc
cmp eax, 0xffffffff
je 0x441081
test eax, eax
je 0x440f3a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push edi
call fcn.0042b0bf
add esp, 0x14
cmp eax, 0x51
je 0x440f49
test eax, eax
je 0x440c86
xor ebx, ebx
mov dword [ebp - 0xc], ebx
jmp 0x440f3a
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jg 0x440cc8
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp dword [esi + 0x118], ebx
je 0x440cb0
cmp dword [esi + 0x85dc], ebx
je 0x440cb0
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x440f3a
push str.Proxy_CONNECT_aborted
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x28], eax
call fcn.0042afb4
pop ecx
pop ecx
jmp 0x440f3a
add dword [ebp - 0x24], ecx
xor eax, eax
inc eax
cmp ebx, eax
jle 0x440d59
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x53c]
and dword [ebp - 0x24], 0
or eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
je 0x440d19
mov eax, ecx
mov ecx, dword [ebp - 0x14]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
sbb eax, edx
mov dword [ebp - 0x18], eax
test eax, eax
jg 0x440f3a
jl 0x440c7c
test ecx, ecx
jne 0x440f3a
jmp 0x440c7c
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push ecx
push edx
push edi
call fcn.00431262
add esp, 0x10
cmp eax, 0xffffffff
jne 0x440d43
push str.chunk_reading_DONE_n
push esi
call fcn.0042b04a
pop ecx
pop ecx
jmp 0x440c7c
push dword [ebp - 0x34]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0042b04a
add esp, 0xc
jmp 0x440f3a
xor ebx, ebx
mov dword [ebp - 0x34], ebx
test ecx, ecx
jle 0x440f37
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
inc edx
cmp byte [eax], 0xa
mov dword [ebp - 0x20], edx
jne 0x440f27
cmp dword [esi + 0x2e4], 0
je 0x440d97
push edi
push edx
push dword [ebp - 8]
xor eax, eax
inc eax
push eax
push esi
call fcn.0042aede
mov edx, dword [ebp - 0x20]
add esp, 0x14
xor eax, eax
cmp dword [esi + 0x2c8], eax
push edx
push dword [ebp - 8]
setne al
add eax, 2
push eax
push edi
call fcn.0042ada7
add esp, 0x10
test eax, eax
jne 0x441192
mov ecx, dword [ebp - 8]
mov al, byte [ecx]
cmp al, 0xd
je 0x440f97
cmp al, 0xa
je 0x440f97
mov edx, dword [ebp - 0x20]
push 0x11
push ecx
push str.WWW_Authenticate:
mov al, byte [edx + ecx]
mov byte [ebp - 1], al
mov byte [edx + ecx], 0
call fcn.0042dabb
add esp, 0xc
test eax, eax
je 0x440dfe
mov eax, dword [esi + 0x90]
cmp eax, 0x191
je 0x440e21
push 0x13
push dword [ebp - 8]
push str.Proxy_authenticate:
call fcn.0042dabb
add esp, 0xc
test eax, eax
je 0x440e3b
mov eax, dword [esi + 0x90]
cmp eax, 0x197
jne 0x440e3b
push dword [ebp - 8]
push eax
push edi
call fcn.004332cb
add esp, 0xc
test eax, eax
jne 0x441192
jmp 0x440f09
push 0xf
push dword [ebp - 8]
push str.Content_Length:
call fcn.0042dabb
add esp, 0xc
test eax, eax
je 0x440e6f
mov eax, dword [ebp - 8]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.0045a5e0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
jmp 0x440f09
push str.close
push str.Connection:
push dword [ebp - 8]
call fcn.00433078
add esp, 0xc
test eax, eax
jne 0x440ed6
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 8]
call fcn.00433078
add esp, 0xc
test eax, eax
je 0x440ebd
push str.CONNECT_responded_chunked_n
push esi
call fcn.0042b04a
xor eax, eax
inc eax
push edi
mov dword [ebp - 0x40], eax
call fcn.0043124b
add esp, 0xc
jmp 0x440f09
push str.close
push str.Proxy_Connection:
push dword [ebp - 8]
call fcn.00433078
add esp, 0xc
test eax, eax
je 0x440ede
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x440f09
lea ebx, [esi + 0x90]
push ebx
lea eax, [ebp - 0x44]
push eax
push str.HTTP_1._d__d
push dword [ebp - 8]
call fcn.00423542
add esp, 0x10
cmp eax, 2
jne 0x440f06
mov eax, dword [ebx]
mov dword [esi + 0x8690], eax
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
inc eax
inc ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], ebx
cmp ebx, ecx
jl 0x440d6c
mov ebx, dword [ebp - 0xc]
push edi
call fcn.00434c78
pop ecx
test eax, eax
jne 0x4410ea
cmp dword [ebp - 0x24], 0x4000
jb 0x440bee
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x44118f
cmp dword [esi + 0x8690], 0xc8
je 0x4410a3
push edi
call fcn.0043311b
pop ecx
test eax, eax
jne 0x441192
cmp dword [edi + 0x198], eax
mov ebx, dword [ebp - 0x2c]
push 1
pop eax
cmovne ebx, eax
mov dword [ebp - 0x2c], ebx
jmp 0x4410a6
and dword [ebp - 0x24], 0
lea eax, [esi + 0x53c]
cmp dword [esi + 0x90], 0x197
mov dword [ebp - 0x10], eax
jne 0x440c7c
cmp dword [esi + 0x85ec], 0
jne 0x440c7c
mov ecx, dword [ebp - 0x14]
mov eax, ecx
mov edx, dword [ebp - 0x18]
or eax, edx
mov dword [ebp - 0xc], 2
je 0x441015
push edx
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push esi
call fcn.0042b04a
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
sub eax, ebx
cdq
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
sbb eax, edx
mov dword [ebp - 0x18], eax
test eax, eax
jg 0x440f37
jl 0x440c7c
test ecx, ecx
jne 0x440f37
jmp 0x440c7c
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x440c7c
xor eax, eax
inc eax
mov dword [esi + 0xc8], eax
mov eax, dword [ebp - 0x1c]
sub eax, ebx
push eax
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.0042b04a
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
cmp byte [eax], 0xa
jne 0x44104a
mov dword [ebp - 8], eax
inc ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, ebx
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
push edi
call fcn.00431262
add esp, 0x10
cmp eax, 0xffffffff
je 0x440d31
push dword [ebp - 0x1c]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0042b04a
add esp, 0xc
jmp 0x440f37
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x440cb5
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0042afb4
pop ecx
pop ecx
push 2
pop eax
mov dword [ebp - 0x28], eax
jmp 0x440f59
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4410b3
cmp dword [esi + 0xd4], 0
jne 0x4410f1
cmp dword [esi + 0xd4], 0
je 0x44110e
mov ebx, dword [ebp - 0x30]
jmp 0x4409a9
push ebx
call fcn.00452146
push dword [ebp - 0x34]
call fcn.00452146
pop ecx
pop ecx
push 0x1b
jmp 0x441191
mov eax, edi
jmp 0x441192
push ebx
call fcn.00452146
jmp 0x4410d3
push 0x2a
jmp 0x441191
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x130]
push edi
call fcn.0042b4d3
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 0x441142
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0042afb4
add esp, 0xc
test ebx, ebx
je 0x44118f
cmp dword [esi + 0xd4], 0
je 0x44118f
xor eax, eax
inc eax
mov dword [edi + 0x1f4], eax
jmp 0x44118f
mov eax, dword [edi + 0x224]
test eax, eax
je 0x44115a
push eax
call fcn.00452146
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.0042b04a
and dword [esi + 0xc8], 0
pop ecx
pop ecx
xor eax, eax
jmp 0x441192
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0042afb4
pop ecx
pop ecx
push 0x38
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret