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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, ecx
mov dword [ebp - 0x48], 0
push esi
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
push edi
mov eax, dword [ebx + 0x154]
mov esi, dword [ebx]
mov dword [ebp - 0x34], eax
xor al, al
cmp dword [ebx + 0x554], 2
movlpd qword [ebp - 0x44], xmm0
mov byte [ebp - 5], 0
mov byte [ebp - 6], al
mov dword [ebp - 0x30], 0
je 0x100cdb2c
mov byte [ebx + 0x266], al
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
jmp 0x100ccfe0
cmp dword [ebx + 0x554], 0
jne 0x100cd1fa
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.100bc730
push dword [esi + 0x144]
call dword [0x10269bfc]
add esp, 0x14
mov dword [esi + 0x144], 0
push 0xc
push 1
call dword [0x10269bf4]
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x100cd997
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s:_hu
call fcn.100cabc0
add esp, 0xc
mov dword [ebp - 0x38], eax
test eax, eax
je 0x100cd982
push 1
push eax
mov edx, str.CONNECT
mov ecx, ebx
call fcn.100c4c30
push dword [ebp - 0x38]
mov edi, eax
call dword [0x10269bfc]
add esp, 0xc
test edi, edi
jne 0x100cd1cd
cmp dword [ebx + 0x138], 1
mov ecx, 0x10235b30
push dword [ebp + 0xc]
mov eax, 0x10235b34
mov edi, 0x1022a749
cmovne eax, ecx
mov dword [ebp - 0x28], edi
mov cl, byte [ebx + 0x257]
mov edx, edi
mov dword [ebp - 0x24], eax
test cl, cl
mov eax, 0x1022b06c
mov dword [ebp - 0x38], edi
cmove eax, edx
push eax
push dword [ebp + 8]
mov eax, str.___:
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.100cabc0
add esp, 0x14
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100cd955
mov edx, str.Host:
mov ecx, ebx
call fcn.100c4410
test eax, eax
jne 0x100cd0fd
push dword [ebp - 0x2c]
push str.Host:__s_r_n
call fcn.100cabc0
mov edi, eax
add esp, 8
mov dword [ebp - 0x28], edi
test edi, edi
je 0x100cd935
mov edx, str.User_Agent:
mov ecx, ebx
call fcn.100c4410
test eax, eax
jne 0x100cd11e
cmp dword [esi + 0x3a8], eax
je 0x100cd11e
mov eax, dword [ebx + 0x294]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x290]
mov ecx, 0x1022a749
push dword [ebp - 0x38]
test eax, eax
cmovne ecx, eax
push ecx
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push str.CONNECT__s_HTTP__s_r_n_s_s_s
push dword [ebp - 0x14]
call fcn.100c54a0
mov edi, eax
add esp, 0x1c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100cd161
cmp byte [eax], 0
je 0x100cd161
push eax
call dword [0x10269bfc]
add esp, 4
push dword [ebp - 0x2c]
call dword [0x10269bfc]
add esp, 4
test edi, edi
jne 0x100cd1b4
push dword [ebp - 0x14]
mov dl, 1
mov ecx, ebx
call fcn.100c5a90
mov edi, eax
add esp, 4
test edi, edi
jne 0x100cd1b4
push 0x1022b530
push dword [ebp - 0x14]
call fcn.100c54a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100cd1b4
push ecx
mov ecx, dword [ebp - 0x14]
mov edx, ebx
push eax
lea eax, [esi + 0x874c]
push eax
call fcn.100c5190
add esp, 0xc
mov edi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
test edi, edi
je 0x100cd1de
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.100bc7f0
add esp, 8
jmp 0x100cd1db
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [0x10269bfc]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [0x10269bfc]
add esp, 4
test edi, edi
jne 0x100cd979
mov dword [ebx + 0x554], 1
mov edx, dword [esi + 0x208]
xor eax, eax
mov ecx, 0x493e0
test edx, edx
mov dword [ebp - 0x28], ecx
mov ecx, 1
cmovg eax, ecx
mov ecx, dword [esi + 0x20c]
test ecx, ecx
jle 0x100cd221
or eax, 2
dec eax
je 0x100cd23b
dec eax
je 0x100cd236
dec eax
jne 0x100cd23e
cmp edx, ecx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x28], eax
jmp 0x100cd23e
mov dword [ebp - 0x28], ecx
jmp 0x100cd23e
mov dword [ebp - 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edi, dword [esi + 0x508]
mov eax, 0x10624dd3
mul ecx
mov ebx, edx
shr ebx, 6
imul eax, ebx, 0x3e8
sub edi, ebx
sub ecx, eax
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub ecx, dword [esi + 0x50c]
imul ecx
imul eax, edi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
je 0x100cdb35
test ecx, ecx
jle 0x100cdb35
mov ecx, dword [ebp - 0x34]
push 0
push 0xffffffffffffffff
call fcn.100bbfd0
add esp, 8
test eax, eax
je 0x100cdb2c
lea eax, [esi + 0x5a4]
mov ecx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], eax
lea ecx, [ecx]
test ecx, ecx
je 0x100cd8aa
cmp dword [ebp - 0x30], 0
jne 0x100cdb43
mov edi, dword [esi + 0x208]
xor eax, eax
mov edx, dword [esi + 0x20c]
mov ecx, 0x493e0
test edi, edi
mov dword [ebp - 0x28], ecx
mov ecx, 1
cmovg eax, ecx
test edx, edx
jle 0x100cd309
or eax, 2
dec eax
je 0x100cd323
dec eax
je 0x100cd31e
dec eax
jne 0x100cd326
cmp edi, edx
mov ecx, edx
cmovl ecx, edi
mov dword [ebp - 0x28], ecx
jmp 0x100cd326
mov dword [ebp - 0x28], edx
jmp 0x100cd326
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edi, dword [esi + 0x508]
mov eax, 0x10624dd3
mul ecx
mov ebx, edx
shr ebx, 6
imul eax, ebx, 0x3e8
sub edi, ebx
sub ecx, eax
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
sub ecx, dword [esi + 0x50c]
imul ecx
imul eax, edi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
je 0x100cdb35
test ecx, ecx
jle 0x100cdb35
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [ebp - 0x34]
push eax
push 0xffffffffffffffff
call fcn.100bbfd0
add esp, 8
cmp eax, 0xffffffff
je 0x100cd871
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x100cd889
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
push eax
mov eax, 0x4000
sub eax, edi
push eax
push ebx
call fcn.100bcef0
add esp, 0xc
cmp eax, 0x51
je 0x100cd89b
test eax, eax
je 0x100cd3e5
mov dword [ebp - 0x14], 0
jmp 0x100cd889
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ecx
test ecx, ecx
jg 0x100cd43f
cmp dword [esi + 0x180], 0
mov dword [ebp - 0x14], 0
je 0x100cd425
cmp dword [esi + 0x8684], 0
je 0x100cd425
mov eax, dword [ebp - 0xc]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [eax + 0x266], 1
call fcn.100bc730
add esp, 8
jmp 0x100cd889
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 0x30], 1
call fcn.100bc7f0
add esp, 8
jmp 0x100cd889
add edi, ecx
xor eax, eax
cmp dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edi
jle 0x100cd4f2
mov edi, dword [ebp - 0x1c]
lea ebx, [esi + 0x5a4]
mov dword [ebp - 0x10], eax
mov eax, edi
or eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
je 0x100cd494
mov eax, ecx
cdq
sub edi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
sbb eax, edx
mov dword [ebp - 0x18], eax
test eax, eax
jg 0x100cd886
jl 0x100cd488
test edi, edi
jne 0x100cd886
mov dword [ebp - 0x14], 0
jmp 0x100cd886
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push ecx
mov ecx, dword [ebp - 0xc]
mov edx, ebx
call fcn.100d2510
add esp, 8
cmp eax, 0xffffffff
jne 0x100cd4dc
push str.chunk_reading_DONE_n
push esi
call fcn.100bc730
mov eax, dword [ebp - 0xc]
add esp, 8
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [eax + 0x554], 2
jmp 0x100cd88c
push dword [ebp - 0x28]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.100bc730
add esp, 0xc
jmp 0x100cd886
mov dword [ebp - 0x24], eax
test ecx, ecx
jle 0x100cd889
mov edi, dword [ebp - 0x38]
inc edi
cmp byte [ebx], 0xa
mov dword [ebp - 0x38], edi
jne 0x100cd702
cmp byte [esi + 0x310], 0
mov ebx, dword [ebp - 0x2c]
je 0x100cd52d
push dword [ebp - 0xc]
mov edx, 1
mov ecx, esi
push edi
push ebx
call fcn.100bd080
add esp, 0xc
cmp byte [esi + 0x304], 0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov edx, 2
push edi
cmovne edx, eax
push ebx
call fcn.100bcea0
add dword [esi + 0x8748], edi
add esp, 8
add dword [esi + 0x80], edi
test eax, eax
jne 0x100cdb48
mov al, byte [ebx]
cmp al, 0xd
je 0x100cd717
cmp al, 0xa
je 0x100cd717
mov cl, byte [edi + ebx]
lea eax, [edi + ebx]
mov byte [ebp - 8], cl
mov edx, ebx
push 0x11
mov ecx, str.WWW_Authenticate:
mov dword [ebp - 0x38], eax
mov byte [eax], 0
call fcn.100ccdd0
add esp, 4
test eax, eax
je 0x100cd5a5
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x100cd5c7
push 0x13
mov edx, ebx
mov ecx, str.Proxy_authenticate:
call fcn.100ccdd0
add esp, 4
test eax, eax
je 0x100cd60d
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x100cd60d
cmp eax, 0x197
mov ecx, ebx
sete byte [ebp - 7]
call fcn.100c44e0
mov edi, eax
test edi, edi
je 0x100cd997
mov dl, byte [ebp - 7]
mov ecx, dword [ebp - 0xc]
push edi
call fcn.100c4d30
add esp, 4
mov ebx, eax
push edi
call dword [0x10269bfc]
add esp, 4
test ebx, ebx
je 0x100cd6e6
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
mov edx, ebx
mov ecx, str.Content_Length:
call fcn.100ccdd0
add esp, 4
test eax, eax
je 0x100cd63d
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.101a8c60
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x100cd6e6
push str.close
mov edx, str.Connection:
mov ecx, ebx
call fcn.100c55f0
add esp, 4
test al, al
je 0x100cd65e
mov byte [ebp - 5], 1
jmp 0x100cd6e6
push str.chunked
mov edx, str.Transfer_Encoding:
mov ecx, ebx
call fcn.100c55f0
add esp, 4
test al, al
je 0x100cd6a2
push str.CONNECT_responded_chunked_n
push esi
call fcn.100bc730
mov eax, dword [ebp - 0xc]
add esp, 8
mov byte [ebp - 6], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x20], 0
jmp 0x100cd6e6
push str.close
mov edx, str.Proxy_Connection:
mov ecx, ebx
call fcn.100c55f0
add esp, 4
test al, al
je 0x100cd6c0
mov byte [ebp - 5], 1
jmp 0x100cd6e6
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x48]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.101ab7d0
add esp, 0x10
cmp eax, 2
jne 0x100cd6e6
mov eax, dword [edi]
mov dword [esi + 0x8738], eax
mov eax, dword [ebp - 0x38]
xor edi, edi
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebp - 8]
mov dword [ebp - 0x38], edi
mov byte [eax], cl
mov ecx, dword [ebp - 0x28]
lea eax, [ebx + 1]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
inc eax
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
cmp eax, ecx
jl 0x100cd500
jmp 0x100cd886
xor edi, edi
lea eax, [esi + 0x5a4]
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
jne 0x100cd831
cmp byte [esi + 0x868c], 0
jne 0x100cd831
mov edi, dword [ebp - 0x1c]
mov eax, edi
or eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 2
je 0x100cd79d
mov ebx, dword [ebp - 0x18]
push ebx
push edi
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100bc730
mov eax, dword [ebp - 0x28]
add esp, 0x10
sub eax, dword [ebp - 0x24]
cdq
sub edi, eax
mov dword [ebp - 0x1c], edi
sbb ebx, edx
mov dword [ebp - 0x18], ebx
test ebx, ebx
jg 0x100cd788
jl 0x100cd781
test edi, edi
jne 0x100cd788
mov dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x554], 2
jmp 0x100cd88c
mov al, byte [ebp - 6]
test al, al
je 0x100cd781
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
sub eax, edi
push eax
push str._zd_bytes_of_chunk_left_n
push esi
mov byte [esi + 0x13d], 1
call fcn.100bc730
add esp, 0xc
cmp byte [ebx + 1], 0xa
jne 0x100cd7cd
inc ebx
inc edi
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
lea edx, [ebx + 1]
sub eax, edi
push eax
call fcn.100d2510
add esp, 8
cmp eax, 0xffffffff
jne 0x100cd81b
push str.chunk_reading_DONE_n
push esi
call fcn.100bc730
mov eax, dword [ebp - 0xc]
add esp, 8
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov dword [eax + 0x554], 2
mov dword [eax + 0x554], 2
jmp 0x100cd88c
push dword [ebp - 0x40]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.100bc730
add esp, 0xc
jmp 0x100cd788
xor eax, eax
cmp dword [esi + 0x8738], 0xc8
mov dword [ebp - 0x14], eax
jne 0x100cd78b
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x24]
dec eax
je 0x100cd78b
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.100bc7f0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [eax + 0x554], 2
jmp 0x100cd88c
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [ebp - 0x30], 1
call fcn.100bc7f0
add esp, 8
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, eax
call fcn.100c8fd0
test eax, eax
jne 0x100cd9a3
mov ecx, dword [ebp - 0x14]
cmp edi, 0x4000
jb 0x100cd2d0
cmp dword [ebp - 0x30], 0
jne 0x100cdb43
cmp dword [esi + 0x8738], 0xc8
mov ebx, dword [ebp - 0xc]
je 0x100cd8e0
mov ecx, ebx
call fcn.100c48e0
test eax, eax
jne 0x100cdb48
cmp byte [ebx + 0x251], al
je 0x100cd8e0
mov byte [ebp - 5], 1
jmp 0x100cd8e6
cmp byte [ebp - 5], 0
je 0x100cd8f3
cmp dword [esi + 0x144], 0
jne 0x100cd9af
cmp dword [esi + 0x144], 0
je 0x100cd9ed
cmp dword [ebx + 0x554], 2
jne 0x100cd923
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ebx + 0x554], 0
call fcn.100bc730
add esp, 0xc
cmp dword [esi + 0x144], 0
jne 0x100ccfe0
jmp 0x100cd9ed
push dword [ebp - 0x2c]
call dword [0x10269bfc]
mov ecx, dword [ebp - 0x14]
add esp, 4
call fcn.100c5170
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [0x10269bfc]
add esp, 4
push ebx
call dword [0x10269bfc]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [0x10269bfc]
add esp, 4
push edi
call dword [0x10269bfc]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x38], 0
mov edi, dword [ebx + 0x154]
je 0x100cd9d3
cmp edi, dword [ebx + 0x158]
jne 0x100cda23
cmp byte [ebx + 0x165], 0
je 0x100cda23
mov byte [ebx + 0x165], 0
mov edx, edi
mov ecx, ebx
call fcn.100b06e0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x154], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x100cdae6
cmp byte [ebp - 5], 0
je 0x100cda3a
cmp dword [esi + 0x144], 0
je 0x100cda3a
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x266], 1
call fcn.100bc730
add esp, 8
jmp 0x100cda98
mov edx, edi
mov ecx, ebx
call fcn.100b06e0
mov eax, dword [ebx + 0x38]
push edi
push dword [ebx + 0x3c]
call eax
add esp, 8
jmp 0x100cd9e3
push dword [esi + 0x144]
call dword [0x10269bfc]
mov dword [esi + 0x144], 0
add esp, 4
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x251], 1
mov edi, dword [ebx + 0x154]
je 0x100cda7e
cmp edi, dword [ebx + 0x158]
jne 0x100cdacf
cmp byte [ebx + 0x165], 0
je 0x100cdacf
mov byte [ebx + 0x165], 0
mov edx, edi
mov ecx, ebx
call fcn.100b06e0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x154], 0xffffffff
mov dword [ebx + 0x554], 0
cmp byte [ebx + 0x266], 0
jne 0x100cdb2c
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.100bc7f0
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, ebx
call fcn.100b06e0
mov eax, dword [ebx + 0x38]
push edi
push dword [ebx + 0x3c]
call eax
add esp, 8
jmp 0x100cda8e
mov dword [ebx + 0x554], 2
push dword [ebx + 0x290]
call dword [0x10269bfc]
add esp, 4
mov dword [ebx + 0x290], 0
mov byte [esi + 0x8688], 1
push str.Proxy_replied_OK_to_CONNECT_request_n
push esi
call fcn.100bc730
mov byte [esi + 0x13d], 0
add esp, 8
mov byte [ebx + 0x260], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.100bc7f0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret