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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov ebx, dword [edi]
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov eax, dword [ebx + 0x19c]
mov dword [esp + 0x34], eax
cmp eax, ebp
jne 0x461bf9
mov dword [esp + 0x34], 0x36ee80
mov eax, dword [esp + 0x54]
mov ecx, dword [edi + eax*4 + 0x130]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2c], ebp
mov dword [edi + 0x214], ebp
cmp dword [edi + 0x1f0], ebp
jne 0x461e19
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.00427d60
mov eax, dword [ebx + 0xd4]
add esp, 0x10
cmp eax, ebp
je 0x461c61
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [ebx + 0xd4], ebp
call fcn.00440de0
mov ebp, eax
test ebp, ebp
je 0x46236e
mov eax, dword [esp + 0x58]
push esi
push eax
push str._s:_hu
call fcn.0042b230
add esp, 0xc
mov dword [esp + 0x28], eax
test eax, eax
je 0x462364
push 1
push eax
push str.CONNECT
push edi
call fcn.004409d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x461de5
mov ecx, dword [esp + 0x50]
cmp dword [ecx + 0x114], 1
mov esi, 0x55d4d3
mov edi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x517068
je 0x461cd2
mov dword [esp + 0x1c], 0x51706c
push str.Host:
push ebx
call fcn.00440480
add esp, 8
test eax, eax
jne 0x461d00
mov edx, dword [esp + 0x28]
push edx
push str.Host:__s_r_n
call fcn.0042b230
mov edi, eax
add esp, 8
test edi, edi
je 0x46237b
push str.Proxy_Connection:
push ebx
call fcn.00440480
add esp, 8
test eax, eax
jne 0x461d1a
mov dword [esp + 0x20], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.00440480
add esp, 8
test eax, eax
jne 0x461d3e
cmp dword [ebx + 0x3a0], eax
je 0x461d3e
mov eax, dword [esp + 0x50]
mov esi, dword [eax + 0x248]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x244]
test eax, eax
jne 0x461d51
mov eax, 0x55d4d3
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
push edx
push esi
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
movzx eax, word [esp + 0x70]
push eax
push ecx
push str.CONNECT__s:_hu_HTTP__s_r_n_s_s_s_s
push ebp
call fcn.00441680
add esp, 0x24
mov esi, eax
test edi, edi
je 0x461d8c
cmp byte [edi], 0
je 0x461d8c
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test esi, esi
jne 0x461dd1
mov edi, dword [esp + 0x50]
push ebp
push edi
call fcn.00441800
mov esi, eax
add esp, 8
test esi, esi
jne 0x461dd1
push 0x510d54
push ebp
call fcn.00441680
mov esi, eax
add esp, 8
test esi, esi
jne 0x461dd1
mov edx, dword [esp + 0x54]
push edx
push eax
lea eax, [ebx + 0x86b4]
push eax
push edi
push ebp
call fcn.00440df0
add esp, 0x14
mov esi, eax
xor ebp, ebp
test esi, esi
je 0x461de5
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.00427df0
add esp, 8
mov ecx, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCR90.dll_free]
push ecx
call edi
add esp, 4
test ebp, ebp
je 0x461dff
push ebp
call edi
add esp, 4
test esi, esi
jne 0x46239b
mov edx, dword [esp + 0x50]
mov dword [edx + 0x1f0], 1
mov edi, edx
xor ebp, ebp
mov eax, dword [edi + 0x124]
mov ecx, dword [edi + 0x120]
push eax
push ecx
call fcn.0042ca40
push edx
push eax
call fcn.0042ca70
mov edx, dword [esp + 0x44]
sub edx, eax
add esp, 0x10
test edx, edx
jle 0x4623a5
cmp dword [ebx + 0x530], 2
jne 0x461e65
mov eax, dword [esp + 0x38]
push ebp
push 0xffffffffffffffff
push eax
call fcn.00443f50
add esp, 0xc
test eax, eax
je 0x46246e
lea esi, [ebx + 0x54c]
mov dword [edi + 0x1f0], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], 1
cmp dword [esp + 0x14], ebp
je 0x462309
cmp dword [esp + 0x2c], ebp
jne 0x4623b3
mov ecx, dword [edi + 0x124]
mov edx, dword [edi + 0x120]
push ecx
push edx
call fcn.0042ca40
push edx
push eax
call fcn.0042ca70
mov ecx, dword [esp + 0x44]
sub ecx, eax
add esp, 0x10
cmp ecx, ebp
jle 0x4623a5
cmp ecx, 0x3e8
jl 0x461ed1
mov ecx, 0x3e8
mov eax, dword [esp + 0x38]
push ecx
push 0xffffffffffffffff
push eax
call fcn.00443f50
add esp, 0xc
cmp eax, 0xffffffff
je 0x4622d4
cmp eax, ebp
je 0x4622ea
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, 0x4000
sub edx, dword [esp + 0x2c]
push edx
push eax
push ecx
push edi
call fcn.00427ad0
add esp, 0x14
cmp eax, 0x51
je 0x4622fb
cmp eax, ebp
je 0x461f2a
mov dword [esp + 0x14], ebp
jmp 0x4622ea
mov eax, dword [esp + 0x24]
cmp eax, ebp
jg 0x461f5f
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x118], ebp
je 0x461f55
cmp dword [ebx + 0x85ec], ebp
je 0x461f55
mov dword [edi + 0x214], 1
jmp 0x4622ea
push str.Proxy_CONNECT_aborted
jmp 0x4622d9
add dword [esp + 0x28], eax
mov edx, 1
cmp dword [esp + 0x14], edx
jle 0x461fff
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x48]
lea ecx, [ebx + 0x54c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ecx
je 0x461fb6
cdq
sub dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sbb eax, edx
cmp eax, ebp
mov dword [esp + 0x48], eax
jg 0x4622ea
jl 0x461fad
cmp dword [esp + 0x44], ebp
ja 0x4622ea
mov dword [esp + 0x14], ebp
jmp 0x4622ea
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push edi
mov dword [esp + 0x30], ebp
call fcn.00446350
add esp, 0x10
cmp eax, 0xffffffff
jne 0x461fe7
push str.chunk_reading_DONE_n
push ebx
call fcn.00427d60
mov dword [esp + 0x1c], ebp
jmp 0x4622e7
mov eax, dword [esp + 0x20]
push eax
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.00427d60
add esp, 0xc
jmp 0x4622ea
cmp eax, ebp
mov dword [esp + 0x20], ebp
jle 0x4622ea
jmp 0x462010
mov ecx, dword [esp + 0x18]
add dword [esp + 0x1c], edx
cmp byte [ecx], 0xa
jne 0x4621dc
cmp dword [ebx + 0x2e4], ebp
je 0x46203b
mov edx, dword [esp + 0x1c]
push edi
push edx
push esi
push 1
push ebx
call fcn.00427c70
add esp, 0x14
mov eax, 2
cmp dword [ebx + 0x2c8], ebp
je 0x46204d
mov eax, 3
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
push edi
call fcn.004280d0
add esp, 0x10
cmp eax, ebp
jne 0x462470
mov al, byte [esi]
cmp al, 0xd
je 0x4621f7
cmp al, 0xa
je 0x4621f7
mov eax, dword [esp + 0x1c]
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.0042ccf0
add esp, 0xc
test eax, eax
je 0x4620a7
mov eax, dword [ebx + 0x90]
cmp eax, 0x191
je 0x4620c8
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.0042ccf0
add esp, 0xc
test eax, eax
je 0x4620e0
mov eax, dword [ebx + 0x90]
cmp eax, 0x197
jne 0x4620e0
push esi
push eax
push edi
call fcn.00440ae0
add esp, 0xc
cmp eax, ebp
jne 0x462470
jmp 0x4621b3
push 0xf
push esi
push str.Content_Length:
call fcn.0042ccf0
add esp, 0xc
test eax, eax
je 0x462111
push 0xa
lea eax, [esi + 0xf]
push ebp
push eax
call dword [sym.imp.MSVCR90.dll__strtoi64]
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x4621b3
push str.close
push str.Connection:
push esi
call fcn.00441080
add esp, 0xc
test eax, eax
je 0x462135
mov dword [esp + 0x30], 1
jmp 0x4621b3
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00441080
add esp, 0xc
test eax, eax
je 0x46216a
push str.CONNECT_responded_chunked_n
push ebx
call fcn.00427d60
push edi
mov dword [esp + 0x48], 1
call fcn.00446330
add esp, 0xc
jmp 0x4621b3
push str.close
push str.Proxy_Connection:
push esi
call fcn.00441080
add esp, 0xc
test eax, eax
je 0x46218b
mov dword [esp + 0x30], 1
jmp 0x4621b3
lea edi, [ebx + 0x90]
push edi
lea ecx, [esp + 0x44]
push ecx
push str.HTTP_1._d__d
push esi
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x4621b3
mov edx, dword [edi]
mov dword [ebx + 0x86a0], edx
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
mov byte [ecx + esi], al
mov eax, dword [esp + 0x24]
lea esi, [edx + 1]
mov dword [esp + 0x1c], 0
xor ebp, ebp
mov edx, 1
mov ecx, dword [esp + 0x20]
add dword [esp + 0x18], edx
add ecx, edx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x462010
jmp 0x4622ea
cmp dword [ebx + 0x90], 0x197
lea eax, [ebx + 0x54c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], eax
jne 0x461fad
cmp dword [ebx + 0x85fc], ebp
jne 0x461fad
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x48]
mov dword [esp + 0x14], 2
je 0x462258
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.00427d60
mov eax, dword [esp + 0x34]
add esp, 0x10
sub eax, dword [esp + 0x20]
jmp 0x461f8a
cmp dword [esp + 0x3c], ebp
je 0x461fad
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
mov dword [ebx + 0xc8], 1
push eax
push str._zd_bytes_of_chunk_left_n
push ebx
call fcn.00427d60
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x46228e
inc esi
inc dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esi + 1]
push eax
push edi
call fcn.00446350
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4622bf
push str.chunk_reading_DONE_n
push ebx
call fcn.00427d60
mov dword [esp + 0x1c], ebp
jmp 0x4622e7
mov ecx, dword [esp + 0x24]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push ebx
call fcn.00427d60
add esp, 0xc
jmp 0x4622ea
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebx
mov dword [esp + 0x34], 1
call fcn.00427df0
add esp, 8
push edi
call fcn.004301f0
add esp, 4
test eax, eax
jne 0x4623c0
cmp dword [esp + 0x28], 0x4000
jb 0x461e85
cmp dword [esp + 0x2c], ebp
jne 0x4623b3
cmp dword [ebx + 0x86a0], 0xc8
je 0x462343
push edi
call fcn.004414b0
add esp, 4
cmp eax, ebp
jne 0x462470
cmp dword [edi + 0x1b8], ebp
je 0x462343
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x46234b
mov esi, dword [esp + 0x30]
cmp esi, ebp
je 0x462353
cmp dword [ebx + 0xd4], ebp
jne 0x4623cd
cmp dword [ebx + 0xd4], ebp
jne 0x461c22
jmp 0x4623f1
push ebp
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ebp
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x3c
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.00427df0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x54]
mov ecx, dword [edi + eax*4 + 0x130]
push ecx
push edi
call fcn.00428a60
mov edx, dword [esp + 0x5c]
add esp, 8
mov dword [edi + edx*4 + 0x130], 0xffffffff
mov eax, dword [ebx + 0x90]
cmp eax, 0xc8
je 0x462430
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.00427df0
add esp, 0xc
cmp esi, ebp
je 0x462423
cmp dword [ebx + 0xd4], ebp
je 0x462423
mov dword [edi + 0x214], 1
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x3c
ret
mov eax, dword [edi + 0x244]
cmp eax, ebp
je 0x46244a
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [edi + 0x244], ebp
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x244], ebp
push ebx
mov dword [ebx + 0x85f0], 1
call fcn.00427d60
add esp, 8
mov dword [ebx + 0xc8], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret