Function at 0x455d94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x38], ecx
mov eax, dword [edi + 0x170]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], eax
cmp eax, ecx
jne 0x455dbe
mov dword [ebp - 0x28], 0x36ee80
mov eax, dword [ebp + 0xc]
lea eax, [ebx + eax*4 + 0xd4]
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 1], cl
mov byte [ebp - 2], cl
mov dword [ebp - 0x24], ecx
mov byte [ebx + 0x13e], cl
cmp byte [ebx + 0x135], 0
jne 0x455fbd
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.0044a4a9
mov eax, dword [edi + 0xcc]
add esp, 0x10
test eax, eax
je 0x455e21
push eax
call dword [0x49b830]
and dword [edi + 0xcc], 0
pop ecx
call fcn.004543c7
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4564b4
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str._s:_d
call fcn.0044c1f9
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4564bc
push 1
push eax
push str.CONNECT
mov esi, ebx
call fcn.0045408a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x455f98
cmp dword [ebx + 0xbc], 1
mov esi, 0x480081
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x480aa4
je 0x455e92
mov dword [ebp - 8], 0x487454
push str.Host:
push edi
call fcn.00453c6e
pop ecx
pop ecx
test eax, eax
jne 0x455ebd
push dword [ebp - 0x20]
push str.Host:__s_r_n
call fcn.0044c1f9
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4564c8
push str.Proxy_Connection:
push edi
call fcn.00453c6e
pop ecx
pop ecx
test eax, eax
jne 0x455ed5
mov dword [ebp - 0x1c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.00453c6e
pop ecx
pop ecx
test eax, eax
jne 0x455ef7
cmp dword [edi + 0x304], eax
je 0x455ef7
mov eax, dword [ebx + 0x150]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebx + 0x14c]
test ebx, ebx
je 0x455f03
mov esi, ebx
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
push dword [ebp - 0x10]
movzx eax, word [ebp + 0x14]
push esi
push ebx
push dword [ebp - 8]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
push str.CONNECT__s:_d_HTTP__s_r_n_s_s_s_s
call fcn.00454989
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x455f3c
cmp byte [ebx], 0
je 0x455f3c
push ebx
call dword [0x49b830]
pop ecx
test esi, esi
jne 0x455f83
push dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
call fcn.00454a30
mov esi, eax
pop ecx
test esi, esi
jne 0x455f83
mov eax, dword [ebp - 0x14]
push 0x482694
call fcn.00454989
mov esi, eax
pop ecx
test esi, esi
jne 0x455f83
mov ecx, dword [ebp + 0xc]
push eax
add edi, 0x8578
push edi
push dword [ebp - 0x14]
mov edi, ebx
call fcn.004543d4
mov edi, dword [ebp - 0x34]
add esp, 0xc
mov esi, eax
and dword [ebp - 0x14], 0
test esi, esi
je 0x455f98
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.0044a513
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [0x49b830]
push dword [ebp - 0x14]
call fcn.00442a7a
pop ecx
pop ecx
test esi, esi
jne 0x4564dd
mov ebx, dword [ebp + 8]
mov byte [ebx + 0x135], 1
push dword [ebx + 0xc8]
push dword [ebx + 0xc4]
call fcn.00458122
push edx
push eax
call fcn.00458138
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x4564e4
cmp dword [edi + 0x448], 2
jne 0x456005
push 0
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.004568aa
add esp, 0xc
test eax, eax
je 0x45656a
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
lea esi, [edi + 0x464]
mov byte [ebx + 0x135], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x456464
cmp dword [ebp - 0x24], 0
jne 0x4564f1
push dword [ebx + 0xc8]
push dword [ebx + 0xc4]
call fcn.00458122
push edx
push eax
call fcn.00458138
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x456450
mov eax, 0x3e8
cmp ecx, eax
jl 0x45606e
mov ecx, eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.004568aa
add esp, 0xc
cmp eax, 0xffffffff
je 0x45641e
test eax, eax
je 0x456432
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push ebx
call fcn.0044a26a
add esp, 0x14
test eax, eax
js 0x456441
xor ecx, ecx
cmp eax, ecx
jne 0x456419
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jg 0x4560eb
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x104], ecx
je 0x4560e1
cmp dword [edi + 0x84fc], ecx
je 0x4560e1
mov byte [ebx + 0x13e], 1
jmp 0x456432
push str.Proxy_CONNECT_aborted
jmp 0x456423
add dword [ebp - 0x20], edx
cmp dword [ebp - 0xc], 1
jle 0x456172
lea eax, [edi + 0x464]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], ecx
je 0x45612f
mov eax, edx
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
xor eax, eax
cmp dword [ebp - 0x3c], eax
jg 0x456432
jl 0x456127
cmp dword [ebp - 0x40], eax
ja 0x456432
mov dword [ebp - 0xc], eax
jmp 0x456432
and dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
push eax
push edx
push dword [ebp - 0x10]
push ebx
call fcn.0045a071
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45615c
push str.chunk_reading_DONE_n
push edi
call fcn.0044a4a9
and dword [ebp - 0xc], 0
jmp 0x456430
push dword [ebp - 0x14]
push str.Read__d_bytes_of_chunk__continue_n
push edi
call fcn.0044a4a9
add esp, 0xc
jmp 0x456432
mov dword [ebp - 0x14], ecx
cmp edx, ecx
jle 0x456432
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
cmp byte [eax], 0xa
jne 0x45633d
cmp byte [edi + 0x270], 0
je 0x4561a5
push ebx
push dword [ebp - 0x1c]
push esi
push 1
push edi
call fcn.0044a3f1
add esp, 0x14
cmp byte [edi + 0x263], 0
push 2
pop eax
je 0x4561b4
push 3
pop eax
push dword [ebp - 0x1c]
push esi
push eax
push ebx
call fcn.0044a673
add esp, 0x10
test eax, eax
jne 0x45656c
mov al, byte [esi]
cmp al, 0xd
je 0x456354
cmp al, 0xa
je 0x456354
mov ebx, dword [ebp - 0x1c]
add ebx, dword [ebp - 8]
mov esi, str.WWW_Authenticate:
mov al, byte [ebx]
push esi
mov byte [ebp - 3], al
mov byte [ebx], 0
call fcn.0045f220
push eax
push dword [ebp - 8]
push esi
call fcn.00458d8e
add esp, 0x10
test eax, eax
je 0x456213
mov eax, dword [edi + 0x90]
cmp eax, 0x191
je 0x45623c
mov esi, str.Proxy_authenticate:
push esi
call fcn.0045f220
push eax
push dword [ebp - 8]
push esi
call fcn.00458d8e
add esp, 0x10
test eax, eax
je 0x456258
mov eax, dword [edi + 0x90]
cmp eax, 0x197
jne 0x456258
push dword [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00454189
add esp, 0xc
test eax, eax
jne 0x45656c
jmp 0x456328
mov esi, str.Content_Length:
push esi
call fcn.0045f220
push eax
push dword [ebp - 8]
push esi
call fcn.00458d8e
add esp, 0x10
test eax, eax
je 0x456296
push 0xa
push 0
push esi
call fcn.0045f220
add eax, dword [ebp - 8]
pop ecx
push eax
call fcn.00463611
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x456328
mov esi, str.close
push esi
push str.Connection:
push dword [ebp - 8]
call fcn.004545fb
add esp, 0xc
test al, al
jne 0x4562fa
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 8]
call fcn.004545fb
add esp, 0xc
test al, al
je 0x4562e5
push str.CONNECT_responded_chunked_n
push edi
call fcn.0044a4a9
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.0045a05a
add esp, 0xc
jmp 0x456328
push esi
push str.Proxy_Connection:
push dword [ebp - 8]
call fcn.004545fb
add esp, 0xc
test al, al
je 0x456300
mov byte [ebp - 1], 1
jmp 0x456328
lea esi, [edi + 0x90]
push esi
lea eax, [ebp - 0x38]
push eax
push str.HTTP_1._d__d
push dword [ebp - 8]
call fcn.0045fcb6
add esp, 0x10
cmp eax, 2
jne 0x456328
mov eax, dword [esi]
mov dword [edi + 0x8564], eax
mov al, byte [ebp - 3]
and dword [ebp - 0x1c], 0
mov byte [ebx], al
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
mov esi, eax
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x45617d
jmp 0x456432
xor ecx, ecx
cmp dword [edi + 0x90], 0x197
lea eax, [edi + 0x464]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
jne 0x456419
cmp byte [edi + 0x8504], cl
jne 0x456419
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], 2
je 0x4563c2
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.Ignore__lld_bytes_of_response_body_n
push edi
call fcn.0044a4a9
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
add esp, 0x10
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
jg 0x456432
jl 0x4563bc
cmp dword [ebp - 0x40], 0
ja 0x456432
and dword [ebp - 0xc], 0
jmp 0x456432
cmp byte [ebp - 2], cl
je 0x456419
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
mov byte [edi + 0xc5], 1
push eax
push str._d_bytes_of_chunk_left_n
push edi
call fcn.0044a4a9
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x4563f0
inc esi
inc dword [ebp - 0x14]
mov dword [ebp - 8], esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push eax
lea eax, [esi + 1]
push eax
push ebx
call fcn.0045a071
add esp, 0x10
cmp eax, 0xffffffff
je 0x456148
push dword [ebp - 0x18]
jmp 0x45615f
mov dword [ebp - 0xc], ecx
jmp 0x456432
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [ebp - 0x24], 1
call fcn.0044a513
pop ecx
pop ecx
push ebx
call fcn.00458619
pop ecx
test eax, eax
jne 0x4564f5
cmp dword [ebp - 0x20], 0x4000
jb 0x456027
jmp 0x456464
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.0044a513
pop ecx
pop ecx
mov dword [ebp - 0x24], 2
cmp dword [ebp - 0x24], 0
jne 0x4564f1
mov esi, 0xc8
cmp dword [edi + 0x8564], esi
je 0x456496
push ebx
call fcn.004547e9
pop ecx
test eax, eax
jne 0x45656c
cmp byte [ebx + 0x128], al
je 0x456496
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x4564a5
cmp dword [edi + 0xcc], 0
jne 0x4564f9
cmp dword [edi + 0xcc], 0
jne 0x455de5
jmp 0x45650a
push 0x1b
pop eax
jmp 0x45656c
push dword [ebp - 0x14]
call dword [0x49b830]
pop ecx
jmp 0x4564b4
push dword [ebp - 0x14]
call dword [0x49b830]
push dword [ebp - 0x20]
call dword [0x49b830]
pop ecx
jmp 0x4564c5
mov eax, esi
jmp 0x45656c
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.0044a513
pop ecx
pop ecx
push 0x38
jmp 0x4564b6
push 0x2a
jmp 0x4564b6
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x30]
or dword [eax], 0xffffffff
mov eax, dword [edi + 0x90]
cmp eax, esi
je 0x45653b
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.0044a513
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x4564f1
cmp dword [edi + 0xcc], 0
je 0x4564f1
mov byte [ebx + 0x13e], 1
jmp 0x4564f1
push dword [ebx + 0x14c]
call fcn.00442a7a
and dword [ebx + 0x14c], 0
mov dword [esp], str.Proxy_replied_OK_to_CONNECT_request_n
push edi
mov byte [edi + 0x8500], 1
call fcn.0044a4a9
pop ecx
pop ecx
mov byte [edi + 0xc5], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret