Function at 0x43bdb0
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 0x43bdda
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 0x43bfd9
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.0043052e
mov eax, dword [edi + 0xcc]
add esp, 0x10
test eax, eax
je 0x43be3d
push eax
call dword [0x498d14]
and dword [edi + 0xcc], 0
pop ecx
call fcn.0043a3e3
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43c4d0
movzx eax, word [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push str._s:_d
call fcn.00432215
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x43c4d8
push 1
push eax
push str.CONNECT
mov esi, ebx
call fcn.0043a0a6
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x43bfb4
cmp dword [ebx + 0xbc], 1
mov esi, 0x47d949
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x484a04
je 0x43beae
mov dword [ebp - 8], 0x484a08
push 0x47e2cc
push edi
call fcn.00439c8a
pop ecx
pop ecx
test eax, eax
jne 0x43bed9
push dword [ebp - 0x20]
push str.Host:__s_r_n
call fcn.00432215
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43c4e4
push str.Proxy_Connection:
push edi
call fcn.00439c8a
pop ecx
pop ecx
test eax, eax
jne 0x43bef1
mov dword [ebp - 0x1c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.00439c8a
pop ecx
pop ecx
test eax, eax
jne 0x43bf13
cmp dword [edi + 0x304], eax
je 0x43bf13
mov eax, dword [ebx + 0x150]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebx + 0x14c]
test ebx, ebx
je 0x43bf1f
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.0043a9a5
add esp, 0x20
mov esi, eax
test ebx, ebx
je 0x43bf58
cmp byte [ebx], 0
je 0x43bf58
push ebx
call dword [0x498d14]
pop ecx
test esi, esi
jne 0x43bf9f
push dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
call fcn.0043aa4c
mov esi, eax
pop ecx
test esi, esi
jne 0x43bf9f
mov eax, dword [ebp - 0x14]
push 0x4818f4
call fcn.0043a9a5
mov esi, eax
pop ecx
test esi, esi
jne 0x43bf9f
mov ecx, dword [ebp + 0xc]
push eax
add edi, 0x8578
push edi
push dword [ebp - 0x14]
mov edi, ebx
call fcn.0043a3f0
mov edi, dword [ebp - 0x34]
add esp, 0xc
mov esi, eax
and dword [ebp - 0x14], 0
test esi, esi
je 0x43bfb4
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.00430598
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [0x498d14]
push dword [ebp - 0x14]
call fcn.00428e77
pop ecx
pop ecx
test esi, esi
jne 0x43c4f9
mov ebx, dword [ebp + 8]
mov byte [ebx + 0x135], 1
push dword [ebx + 0xc8]
push dword [ebx + 0xc4]
call fcn.0043e13e
push edx
push eax
call fcn.0043e154
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x43c500
cmp dword [edi + 0x448], 2
jne 0x43c021
push 0
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.0043c8c6
add esp, 0xc
test eax, eax
je 0x43c586
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 0x43c480
cmp dword [ebp - 0x24], 0
jne 0x43c50d
push dword [ebx + 0xc8]
push dword [ebx + 0xc4]
call fcn.0043e13e
push edx
push eax
call fcn.0043e154
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x43c46c
mov eax, 0x3e8
cmp ecx, eax
jl 0x43c08a
mov ecx, eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.0043c8c6
add esp, 0xc
cmp eax, 0xffffffff
je 0x43c43a
test eax, eax
je 0x43c44e
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.004302ef
add esp, 0x14
test eax, eax
js 0x43c45d
xor ecx, ecx
cmp eax, ecx
jne 0x43c435
mov edx, dword [ebp - 0x18]
cmp edx, ecx
jg 0x43c107
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x104], ecx
je 0x43c0fd
cmp dword [edi + 0x84fc], ecx
je 0x43c0fd
mov byte [ebx + 0x13e], 1
jmp 0x43c44e
push str.Proxy_CONNECT_aborted
jmp 0x43c43f
add dword [ebp - 0x20], edx
cmp dword [ebp - 0xc], 1
jle 0x43c18e
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 0x43c14b
mov eax, edx
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
xor eax, eax
cmp dword [ebp - 0x3c], eax
jg 0x43c44e
jl 0x43c143
cmp dword [ebp - 0x40], eax
ja 0x43c44e
mov dword [ebp - 0xc], eax
jmp 0x43c44e
and dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
push eax
push edx
push dword [ebp - 0x10]
push ebx
call fcn.00440095
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43c178
push str.chunk_reading_DONE_n
push edi
call fcn.0043052e
and dword [ebp - 0xc], 0
jmp 0x43c44c
push dword [ebp - 0x14]
push str.Read__d_bytes_of_chunk__continue_n
push edi
call fcn.0043052e
add esp, 0xc
jmp 0x43c44e
mov dword [ebp - 0x14], ecx
cmp edx, ecx
jle 0x43c44e
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
cmp byte [eax], 0xa
jne 0x43c359
cmp byte [edi + 0x270], 0
je 0x43c1c1
push ebx
push dword [ebp - 0x1c]
push esi
push 1
push edi
call fcn.00430476
add esp, 0x14
cmp byte [edi + 0x263], 0
push 2
pop eax
je 0x43c1d0
push 3
pop eax
push dword [ebp - 0x1c]
push esi
push eax
push ebx
call fcn.004306f8
add esp, 0x10
test eax, eax
jne 0x43c588
mov al, byte [esi]
cmp al, 0xd
je 0x43c370
cmp al, 0xa
je 0x43c370
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.00444890
push eax
push dword [ebp - 8]
push esi
call fcn.0043edb2
add esp, 0x10
test eax, eax
je 0x43c22f
mov eax, dword [edi + 0x90]
cmp eax, 0x191
je 0x43c258
mov esi, str.Proxy_authenticate:
push esi
call fcn.00444890
push eax
push dword [ebp - 8]
push esi
call fcn.0043edb2
add esp, 0x10
test eax, eax
je 0x43c274
mov eax, dword [edi + 0x90]
cmp eax, 0x197
jne 0x43c274
push dword [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0043a1a5
add esp, 0xc
test eax, eax
jne 0x43c588
jmp 0x43c344
mov esi, str.Content_Length:
push esi
call fcn.00444890
push eax
push dword [ebp - 8]
push esi
call fcn.0043edb2
add esp, 0x10
test eax, eax
je 0x43c2b2
push 0xa
push 0
push esi
call fcn.00444890
add eax, dword [ebp - 8]
pop ecx
push eax
call fcn.0044b613
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x43c344
mov esi, str.close
push esi
push str.Connection:
push dword [ebp - 8]
call fcn.0043a617
add esp, 0xc
test al, al
jne 0x43c316
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 8]
call fcn.0043a617
add esp, 0xc
test al, al
je 0x43c301
push str.CONNECT_responded_chunked_n
push edi
call fcn.0043052e
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.0044007e
add esp, 0xc
jmp 0x43c344
push esi
push str.Proxy_Connection:
push dword [ebp - 8]
call fcn.0043a617
add esp, 0xc
test al, al
je 0x43c31c
mov byte [ebp - 1], 1
jmp 0x43c344
lea esi, [edi + 0x90]
push esi
lea eax, [ebp - 0x38]
push eax
push str.HTTP_1._d__d
push dword [ebp - 8]
call fcn.004492f6
add esp, 0x10
cmp eax, 2
jne 0x43c344
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 0x43c199
jmp 0x43c44e
xor ecx, ecx
cmp dword [edi + 0x90], 0x197
lea eax, [edi + 0x464]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
jne 0x43c435
cmp byte [edi + 0x8504], cl
jne 0x43c435
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], 2
je 0x43c3de
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push str.Ignore__lld_bytes_of_response_body_n
push edi
call fcn.0043052e
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 0x43c44e
jl 0x43c3d8
cmp dword [ebp - 0x40], 0
ja 0x43c44e
and dword [ebp - 0xc], 0
jmp 0x43c44e
cmp byte [ebp - 2], cl
je 0x43c435
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.0043052e
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x43c40c
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.00440095
add esp, 0x10
cmp eax, 0xffffffff
je 0x43c164
push dword [ebp - 0x18]
jmp 0x43c17b
mov dword [ebp - 0xc], ecx
jmp 0x43c44e
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [ebp - 0x24], 1
call fcn.00430598
pop ecx
pop ecx
push ebx
call fcn.0043e63d
pop ecx
test eax, eax
jne 0x43c511
cmp dword [ebp - 0x20], 0x4000
jb 0x43c043
jmp 0x43c480
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00430598
pop ecx
pop ecx
mov dword [ebp - 0x24], 2
cmp dword [ebp - 0x24], 0
jne 0x43c50d
mov esi, 0xc8
cmp dword [edi + 0x8564], esi
je 0x43c4b2
push ebx
call fcn.0043a805
pop ecx
test eax, eax
jne 0x43c588
cmp byte [ebx + 0x128], al
je 0x43c4b2
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x43c4c1
cmp dword [edi + 0xcc], 0
jne 0x43c515
cmp dword [edi + 0xcc], 0
jne 0x43be01
jmp 0x43c526
push 0x1b
pop eax
jmp 0x43c588
push dword [ebp - 0x14]
call dword [0x498d14]
pop ecx
jmp 0x43c4d0
push dword [ebp - 0x14]
call dword [0x498d14]
push dword [ebp - 0x20]
call dword [0x498d14]
pop ecx
jmp 0x43c4e1
mov eax, esi
jmp 0x43c588
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00430598
pop ecx
pop ecx
push 0x38
jmp 0x43c4d2
push 0x2a
jmp 0x43c4d2
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 0x43c557
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.00430598
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x43c50d
cmp dword [edi + 0xcc], 0
je 0x43c50d
mov byte [ebx + 0x13e], 1
jmp 0x43c50d
push dword [ebx + 0x14c]
call fcn.00428e77
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.0043052e
pop ecx
pop ecx
mov byte [edi + 0xc5], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret