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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
and dword [esp + 0x40], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, ecx
movlpd qword [esp + 0x50], xmm0
mov ecx, 0x36ee80
mov dword [esp + 0x44], edx
mov esi, dword [edi]
mov eax, dword [esi + 0x170]
test eax, eax
cmovne ecx, eax
mov eax, dword [edi + edx*4 + 0xd4]
mov dword [esp + 0x3c], eax
xor bl, bl
xor al, al
mov dword [esp + 0x48], ecx
and dword [esp + 0x34], 0
mov byte [esp + 0x12], al
mov byte [edi + 0x13d], al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], eax
cmp byte [edi + 0x135], 0
jne 0x4b0681
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push esi
call fcn.0049dbc9
mov eax, dword [esi + 0xcc]
add esp, 0x10
test eax, eax
je 0x4b04bf
push eax
call dword [0x5e0258]
and dword [esi + 0xcc], 0
pop ecx
xor eax, eax
inc eax
push eax
push 0xc
call dword [0x5e0260]
mov ebx, eax
mov dword [esp + 0x20], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x4b0c21
movzx eax, word [ebp + 0xc]
push eax
push dword [ebp + 8]
push str._s:_d
call sym.wwbizsrv.exe_curl_maprintf
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
je 0x4b0c19
push 1
push eax
mov edx, str.CONNECT
mov ecx, edi
call fcn.004afd6a
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4b0658
cmp dword [edi + 0xbc], 1
mov eax, 0x5b7360
mov ebx, eax
mov dword [esp + 0x2c], eax
mov ecx, 0x5bb428
mov dword [esp + 0x28], ebx
mov eax, 0x5bb424
mov edx, str.Host:
cmovne eax, ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004af76c
test eax, eax
jne 0x4b056c
push dword [esp + 0x30]
push str.Host:__s_r_n
call sym.wwbizsrv.exe_curl_maprintf
mov ebx, eax
mov dword [esp + 0x30], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x4b0c01
mov edx, str.Proxy_Connection:
mov ecx, esi
call fcn.004af76c
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x5b7360
mov edx, str.User_Agent:
cmovne ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, esi
call fcn.004af76c
test eax, eax
jne 0x4b05ad
cmp dword [esi + 0x304], eax
je 0x4b05ad
mov eax, dword [edi + 0x150]
mov dword [esp + 0x2c], eax
push dword [esp + 0x24]
mov eax, dword [edi + 0x14c]
mov ecx, 0x5b7360
push dword [esp + 0x30]
test eax, eax
cmovne ecx, eax
movzx eax, word [ebp + 0xc]
push ecx
push ebx
push dword [esp + 0x24]
push eax
push dword [ebp + 8]
push str.CONNECT__s:_d_HTTP__s_r_n_s_s_s_s
push dword [esp + 0x38]
call fcn.004b0287
mov ebx, eax
add esp, 0x24
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b05fb
cmp byte [eax], 0
je 0x4b05fb
push eax
call dword [0x5e0258]
pop ecx
test ebx, ebx
jne 0x4b0642
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.004b0f09
mov ebx, eax
test ebx, ebx
jne 0x4b0642
push 0x5b8444
push dword [esp + 0x1c]
call fcn.004b0287
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4b0642
push dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov edx, edi
push eax
lea eax, [esi + 0x8588]
push eax
call fcn.004b0100
add esp, 0xc
mov ebx, eax
and dword [esp + 0x18], 0
test ebx, ebx
je 0x4b0658
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0049dc37
pop ecx
pop ecx
push dword [esp + 0x30]
call dword [0x5e0258]
pop ecx
mov ecx, dword [esp + 0x18]
call fcn.0049e26c
test ebx, ebx
jne 0x4b0c12
mov ebx, dword [esp + 0x38]
xor eax, eax
inc eax
mov byte [edi + 0x135], al
push dword [edi + 0xc8]
push dword [edi + 0xc4]
call fcn.004af5eb
push edx
push eax
call fcn.004af601
mov ecx, dword [esp + 0x58]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4b0c4c
cmp dword [esi + 0x458], 2
jne 0x4b06ca
mov ecx, dword [esp + 0x3c]
or edx, 0xffffffff
push 0
call fcn.004ae808
pop ecx
test eax, eax
je 0x4b0cbe
and dword [esp + 0x30], 0
lea eax, [esi + 0x474]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [edi + 0x135], 0
mov dword [esp + 0x24], edx
lea ebx, [eax + 1]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4b0849
cmp dword [esp + 0x34], 0
jne 0x4b0c8b
push dword [edi + 0xc8]
push dword [edi + 0xc4]
call fcn.004af5eb
push edx
push eax
call fcn.004af601
mov ecx, dword [esp + 0x58]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x4b0bc8
mov edx, 0x3e8
cmp ecx, edx
mov eax, edx
cmovl eax, ecx
mov ecx, dword [esp + 0x3c]
push eax
or edx, 0xffffffff
call fcn.004ae808
pop ecx
cmp eax, 0xffffffff
je 0x4b0bbe
test eax, eax
je 0x4b082c
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x40]
push eax
mov eax, 0x4000
mov ecx, edi
sub eax, dword [esp + 0x34]
push eax
push dword [esp + 0x30]
call fcn.0049dfcc
add esp, 0xc
test eax, eax
js 0x4b083b
je 0x4b0790
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x4b082c
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x50], ebx
test ebx, ebx
jg 0x4b07d3
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x104], ebx
je 0x4b07bd
cmp dword [esi + 0x850c], ebx
je 0x4b07bd
xor eax, eax
inc eax
mov byte [edi + 0x13d], al
jmp 0x4b082c
push str.Proxy_CONNECT_aborted
xor eax, eax
inc eax
push esi
mov dword [esp + 0x3c], eax
call fcn.0049dc37
pop ecx
pop ecx
jmp 0x4b082c
add dword [esp + 0x30], ebx
cmp dword [esp + 0x18], 1
jle 0x4b08d4
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x474]
and dword [esp + 0x30], 0
or eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
je 0x4b0890
mov ecx, dword [esp + 0x1c]
mov eax, ebx
cdq
sub ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
sbb eax, edx
mov dword [esp + 0x20], eax
test eax, eax
jg 0x4b0828
jl 0x4b0785
test ecx, ecx
je 0x4b0785
mov ebx, dword [esp + 0x18]
mov ecx, edi
call fcn.004ad835
test eax, eax
jne 0x4b0c29
cmp dword [esp + 0x30], 0x4000
jb 0x4b06f3
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4b0c8b
cmp dword [esi + 0x8574], 0xc8
je 0x4b0be1
mov ecx, edi
call fcn.004afad9
test eax, eax
jne 0x4b0cc0
mov ebx, dword [esp + 0x38]
cmp byte [edi + 0x128], al
push 1
movzx ebx, bl
pop eax
cmovne ebx, eax
mov dword [esp + 0x38], ebx
jmp 0x4b0be5
and dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
mov edx, ecx
mov ecx, edi
push ebx
call fcn.004b6475
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x4b08bd
push str.chunk_reading_DONE_n
push esi
call fcn.0049dbc9
pop ecx
pop ecx
jmp 0x4b0785
push dword [esp + 0x2c]
push str.Read__d_bytes_of_chunk__continue_n
push esi
call fcn.0049dbc9
add esp, 0xc
jmp 0x4b0828
xor eax, eax
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x4b0828
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
inc edx
cmp byte [ecx], 0xa
mov dword [esp + 0x24], edx
jne 0x4b0ade
cmp byte [esi + 0x268], 0
je 0x4b091a
push edi
xor eax, eax
mov ecx, esi
push edx
push dword [esp + 0x1c]
lea edx, [eax + 1]
call fcn.0049e163
mov edx, dword [esp + 0x30]
add esp, 0xc
push edx
push dword [esp + 0x18]
xor edx, edx
mov ecx, edi
cmp byte [esi + 0x25b], dl
setne dl
add edx, 2
call fcn.0049dea2
pop ecx
pop ecx
test eax, eax
jne 0x4b0cc0
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
cmp al, 0xd
je 0x4b0af5
cmp al, 0xa
je 0x4b0af5
mov edx, dword [esp + 0x24]
mov ebx, str.WWW_Authenticate:
push ebx
mov al, byte [edx + ecx]
mov byte [esp + 0x17], al
mov byte [edx + ecx], 0
call fcn.0053f120
mov edx, dword [esp + 0x18]
pop ecx
push eax
mov ecx, ebx
call fcn.004aecb6
pop ecx
test eax, eax
je 0x4b098e
mov edx, dword [esi + 0x90]
cmp edx, 0x191
je 0x4b09bd
push str.Proxy_authenticate:
lea ebx, [esi + 0x90]
call fcn.0053f120
mov edx, dword [esp + 0x18]
pop ecx
push eax
mov ecx, str.Proxy_authenticate:
call fcn.004aecb6
pop ecx
test eax, eax
je 0x4b09d6
mov edx, dword [ebx]
cmp edx, 0x197
jne 0x4b09d6
push dword [esp + 0x14]
mov ecx, edi
call fcn.004afe5c
pop ecx
test eax, eax
jne 0x4b0cc0
jmp 0x4b0ab6
push str.Content_Length:
call fcn.0053f120
mov edx, dword [esp + 0x18]
pop ecx
push eax
mov ecx, str.Content_Length:
call fcn.004aecb6
pop ecx
test eax, eax
je 0x4b0a20
push 0xa
push 0
push str.Content_Length:
call fcn.0053f120
mov ebx, dword [esp + 0x20]
add eax, ebx
pop ecx
push eax
call fcn.00539643
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jmp 0x4b0aba
mov ecx, dword [esp + 0x14]
mov edx, str.Connection:
push str.close
call fcn.004b0384
pop ecx
test al, al
je 0x4b0a41
xor eax, eax
inc eax
mov dword [esp + 0x38], eax
jmp 0x4b0ab6
mov ecx, dword [esp + 0x14]
mov edx, str.Transfer_Encoding:
push str.chunked
call fcn.004b0384
pop ecx
test al, al
je 0x4b0a7a
push str.CONNECT_responded_chunked_n
push esi
call fcn.0049dbc9
and dword [edi + 0x18], 0
xor eax, eax
inc eax
and dword [edi + 0x24], 0
pop ecx
pop ecx
mov byte [esp + 0x12], al
mov dword [edi + 0x1c], eax
jmp 0x4b0ab6
mov ecx, dword [esp + 0x14]
mov edx, str.Proxy_Connection:
push str.close
call fcn.004b0384
pop ecx
test al, al
jne 0x4b0a38
push ebx
lea eax, [esp + 0x50]
push eax
push str.HTTP_1._d__d
push dword [esp + 0x20]
call fcn.0049e253
add esp, 0x10
cmp eax, 2
jne 0x4b0ab6
mov eax, dword [ebx]
mov dword [esi + 0x8574], eax
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x13]
mov byte [edx + ebx], al
xor edx, edx
mov ebx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
inc ecx
inc eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
cmp eax, ebx
jl 0x4b08ea
jmp 0x4b0828
and dword [esp + 0x30], 0
lea eax, [esi + 0x474]
cmp dword [esi + 0x90], 0x197
mov dword [esp + 0x28], eax
jne 0x4b0785
cmp byte [esi + 0x8514], 0
jne 0x4b0785
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 2
pop eax
mov dword [esp + 0x18], eax
mov eax, ecx
or eax, edx
je 0x4b0b4f
push edx
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push esi
call fcn.0049dbc9
add esp, 0x10
sub ebx, dword [esp + 0x2c]
jmp 0x4b07ff
cmp byte [esp + 0x12], 0
je 0x4b0785
xor eax, eax
inc eax
mov byte [esi + 0xc5], al
mov eax, ebx
sub eax, dword [esp + 0x2c]
push eax
push str._d_bytes_of_chunk_left_n
push esi
call fcn.0049dbc9
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [edx + 1]
mov cl, byte [eax]
cmp cl, 0xa
cmovne eax, edx
mov edx, eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x18], edx
cmp cl, 0xa
mov ecx, edi
cmovne eax, dword [esp + 0x30]
sub ebx, eax
inc edx
push ebx
call fcn.004b6475
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4b08ab
push dword [esp + 0x40]
jmp 0x4b08c1
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x4b07c2
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0049dc37
pop ecx
pop ecx
push 2
pop eax
mov dword [esp + 0x34], eax
jmp 0x4b084d
mov ebx, dword [esp + 0x38]
test bl, bl
je 0x4b0bf2
cmp dword [esi + 0xcc], 0
jne 0x4b0c2d
cmp dword [esi + 0xcc], 0
jne 0x4b0483
jmp 0x4b0c59
push dword [esp + 0x18]
call dword [0x5e0258]
pop ecx
push dword [esp + 0x30]
jmp 0x4b0c1a
mov eax, ebx
jmp 0x4b0cc0
push ebx
call dword [0x5e0258]
pop ecx
push 0x1b
pop eax
jmp 0x4b0cc0
push 0x2a
jmp 0x4b0c23
mov eax, dword [esp + 0x44]
push dword [edi + eax*4 + 0xd4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x44]
or dword [edi + eax*4 + 0xd4], 0xffffffff
jmp 0x4b0c59
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0049dc37
pop ecx
pop ecx
mov eax, dword [esi + 0x90]
cmp eax, 0xc8
je 0x4b0c8f
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0049dc37
add esp, 0xc
test bl, bl
je 0x4b0c8b
cmp dword [esi + 0xcc], 0
je 0x4b0c8b
xor eax, eax
inc eax
mov byte [edi + 0x13d], al
push 0x38
jmp 0x4b0c23
mov ecx, dword [edi + 0x14c]
call fcn.0049e26c
and dword [edi + 0x14c], 0
xor eax, eax
inc eax
push str.Proxy_replied_OK_to_CONNECT_request_n
push esi
mov byte [esi + 0x8510], al
call fcn.0049dbc9
pop ecx
pop ecx
mov byte [esi + 0xc5], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret