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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x3c], esi
mov eax, dword [edi + 0x194]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x42932d
mov dword [ebp - 0x2c], 0x36ee80
mov eax, dword [ebp + 0xc]
lea eax, [ebx + eax*4 + 0x12c]
mov dword [ebp - 0x38], eax
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], esi
mov dword [ebx + 0x1ec], esi
cmp dword [ebx + 0x1c8], esi
jne 0x42952f
movzx ebx, word [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push edi
call fcn.0042140e
lea esi, [edi + 0xd4]
mov eax, dword [esi]
add esp, 0x10
test eax, eax
je 0x42938d
push eax
call dword [0x486344]
and dword [esi], 0
pop ecx
call fcn.00426b78
mov dword [ebp - 0x14], eax
test eax, eax
je 0x429a20
push ebx
push dword [ebp + 0x10]
push str._s:_hu
call fcn.004232b3
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x429a28
mov esi, dword [ebp + 8]
push 1
push eax
push str.CONNECT
call fcn.0042682a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x429505
mov eax, dword [ebp + 8]
cmp dword [eax + 0x110], 1
mov esi, 0x46fec0
mov ebx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x471dc0
je 0x4293fd
mov dword [ebp - 0xc], 0x471dc4
push str.Host:
push edi
call fcn.0042640a
pop ecx
pop ecx
test eax, eax
jne 0x429427
push dword [ebp - 0x20]
push str.Host:__s_r_n
call fcn.004232b3
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x429a34
push str.Proxy_Connection:
push edi
call fcn.0042640a
pop ecx
pop ecx
test eax, eax
jne 0x42943f
mov dword [ebp - 0x1c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push edi
call fcn.0042640a
pop ecx
pop ecx
test eax, eax
jne 0x429464
cmp dword [edi + 0x394], eax
je 0x429464
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x218]
test eax, eax
je 0x429473
mov esi, eax
push dword [ebp - 0x1c]
movzx eax, word [ebp + 0x14]
push dword [ebp - 0x10]
push esi
push ebx
push dword [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push str.CONNECT__s:_hu_HTTP__s_r_n_s_s_s_s
push dword [ebp - 0x14]
call fcn.0042726e
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x4294a9
cmp byte [ebx], 0
je 0x4294a9
push ebx
call dword [0x486344]
pop ecx
test esi, esi
jne 0x4294f0
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.00427331
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4294f0
push 0x470334
push dword [ebp - 0x14]
call fcn.0042726e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4294f0
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0x868c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00426b85
add esp, 0x14
mov esi, eax
and dword [ebp - 0x14], 0
test esi, esi
je 0x429505
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.00421478
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [0x486344]
push dword [ebp - 0x14]
call fcn.00419f06
pop ecx
pop ecx
test esi, esi
jne 0x429a49
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c8], 1
mov ebx, eax
push dword [ebx + 0x120]
push dword [ebx + 0x11c]
call fcn.0042b3d7
push edx
push eax
call fcn.0042b3ed
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x429a50
cmp dword [edi + 0x510], 2
jne 0x429576
push esi
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.00429e29
add esp, 0xc
test eax, eax
je 0x429adb
lea eax, [edi + 0x52c]
mov dword [ebx + 0x1c8], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], esi
je 0x4299d2
cmp dword [ebp - 0x24], esi
jne 0x429a5d
push dword [ebx + 0x120]
push dword [ebx + 0x11c]
call fcn.0042b3d7
push edx
push eax
call fcn.0042b3ed
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
add esp, 0x10
cmp ecx, esi
jle 0x4299be
mov eax, 0x3e8
cmp ecx, eax
jl 0x4295da
mov ecx, eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.00429e29
add esp, 0xc
cmp eax, 0xffffffff
je 0x42998c
cmp eax, esi
je 0x4299a0
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push ebx
call fcn.004211e6
add esp, 0x14
cmp eax, 0x51
je 0x4299af
cmp eax, esi
jne 0x42968f
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
jg 0x429655
mov dword [ebp - 0xc], esi
cmp dword [edi + 0x118], esi
je 0x42964b
cmp dword [edi + 0x85cc], esi
je 0x42964b
mov dword [ebx + 0x1ec], 1
jmp 0x4299a0
push str.Proxy_CONNECT_aborted
jmp 0x429991
add dword [ebp - 0x20], ecx
cmp dword [ebp - 0xc], 1
jle 0x4296d9
lea eax, [edi + 0x52c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x44]
or eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], esi
je 0x429697
mov eax, ecx
cdq
sub dword [ebp - 0x44], eax
sbb dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], esi
jg 0x4299a0
jl 0x42968f
cmp dword [ebp - 0x44], esi
ja 0x4299a0
mov dword [ebp - 0xc], esi
jmp 0x4299a0
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
push ebx
call fcn.0042ce65
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4296c3
push str.chunk_reading_DONE_n
push edi
call fcn.0042140e
mov dword [ebp - 0xc], esi
jmp 0x42999e
push dword [ebp - 0x14]
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.0042140e
add esp, 0xc
jmp 0x4299a0
cmp ecx, esi
mov dword [ebp - 0x14], esi
jle 0x4299a0
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
cmp byte [eax], 0xa
jne 0x4298be
cmp dword [edi + 0x2d8], esi
je 0x42970d
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 8]
push 1
push edi
call fcn.0042135a
add esp, 0x14
push 2
pop eax
cmp dword [edi + 0x2bc], esi
je 0x42971b
push 3
pop eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
push eax
push ebx
call fcn.004216cb
add esp, 0x10
cmp eax, esi
jne 0x429add
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0xd
je 0x4298d5
cmp al, 0xa
je 0x4298d5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx + eax]
mov al, byte [esi]
push str.WWW_Authenticate:
mov byte [ebp - 1], al
mov byte [esi], 0
call fcn.0043faa0
push eax
push dword [ebp - 8]
push str.WWW_Authenticate:
call fcn.0042c04e
add esp, 0x10
test eax, eax
je 0x429785
mov eax, dword [edi + 0x90]
cmp eax, 0x191
je 0x4297b1
push str.Proxy_authenticate:
call fcn.0043faa0
push eax
push dword [ebp - 8]
push str.Proxy_authenticate:
call fcn.0042c04e
add esp, 0x10
test eax, eax
je 0x4297cb
mov eax, dword [edi + 0x90]
cmp eax, 0x197
jne 0x4297cb
push dword [ebp - 8]
push eax
push ebx
call fcn.0042691f
add esp, 0xc
test eax, eax
jne 0x429add
jmp 0x4298a9
push str.Content_Length:
call fcn.0043faa0
push eax
push dword [ebp - 8]
push str.Content_Length:
call fcn.0042c04e
add esp, 0x10
test eax, eax
je 0x429810
push 0xa
push 0
push str.Content_Length:
call fcn.0043faa0
add eax, dword [ebp - 8]
pop ecx
push eax
call fcn.004446cf
add esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
jmp 0x4298a9
push str.close
push str.Connection:
push dword [ebp - 8]
call fcn.00426dc1
add esp, 0xc
test eax, eax
jne 0x429878
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 8]
call fcn.00426dc1
add esp, 0xc
test eax, eax
je 0x42985f
push str.CONNECT_responded_chunked_n
push edi
call fcn.0042140e
push ebx
mov dword [ebp - 0x34], 1
call fcn.0042ce51
add esp, 0xc
jmp 0x4298a9
push str.close
push str.Proxy_Connection:
push dword [ebp - 8]
call fcn.00426dc1
add esp, 0xc
test eax, eax
je 0x429881
mov dword [ebp - 0x28], 1
jmp 0x4298a9
lea ebx, [edi + 0x90]
push ebx
lea eax, [ebp - 0x3c]
push eax
push str.HTTP_1._d__d
push dword [ebp - 8]
call fcn.004424ef
add esp, 0x10
cmp eax, 2
jne 0x4298a9
mov eax, dword [ebx]
mov dword [edi + 0x8678], eax
mov al, byte [ebp - 1]
and dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 8]
mov byte [esi], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 8], eax
xor esi, esi
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x4296e4
jmp 0x4299a0
cmp dword [edi + 0x90], 0x197
lea eax, [edi + 0x52c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
jne 0x42968f
cmp dword [edi + 0x85dc], esi
jne 0x42968f
mov eax, dword [ebp - 0x44]
or eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], 2
je 0x42992b
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push str.Ignore__lld_bytes_of_response_body_n
push edi
call fcn.0042140e
mov eax, dword [ebp - 0x18]
add esp, 0x10
sub eax, dword [ebp - 0x14]
jmp 0x429674
cmp dword [ebp - 0x34], esi
je 0x42968f
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
mov dword [edi + 0xc8], 1
push eax
push str._zd_bytes_of_chunk_left_n
push edi
call fcn.0042140e
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
cmp byte [eax], 0xa
jne 0x429962
inc dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
call fcn.0042ce65
add esp, 0x10
cmp eax, 0xffffffff
je 0x4296b0
push dword [ebp - 0x18]
jmp 0x4296c6
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [ebp - 0x24], 1
call fcn.00421478
pop ecx
pop ecx
push ebx
call fcn.0042b8c2
pop ecx
test eax, eax
jne 0x429a61
cmp dword [ebp - 0x20], 0x4000
jb 0x429595
jmp 0x4299d2
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00421478
pop ecx
pop ecx
mov dword [ebp - 0x24], 2
cmp dword [ebp - 0x24], esi
jne 0x429a5d
cmp dword [edi + 0x8678], 0xc8
je 0x429a05
push ebx
call fcn.004270ca
pop ecx
cmp eax, esi
jne 0x429add
cmp dword [ebx + 0x194], esi
je 0x429a05
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], esi
je 0x429a12
cmp dword [edi + 0xd4], esi
jne 0x429a65
cmp dword [edi + 0xd4], esi
jne 0x429354
jmp 0x429a76
push 0x1b
pop eax
jmp 0x429add
push dword [ebp - 0x14]
call dword [0x486344]
pop ecx
jmp 0x429a20
push dword [ebp - 0x14]
call dword [0x486344]
push dword [ebp - 0x20]
call dword [0x486344]
pop ecx
jmp 0x429a31
mov eax, esi
jmp 0x429add
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00421478
pop ecx
pop ecx
push 0x38
jmp 0x429a22
push 0x2a
jmp 0x429a22
mov eax, dword [ebp - 0x38]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x38]
or dword [eax], 0xffffffff
mov eax, dword [edi + 0x90]
cmp eax, 0xc8
je 0x429aab
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.00421478
add esp, 0xc
cmp dword [ebp - 0x28], esi
je 0x429a5d
cmp dword [edi + 0xd4], esi
je 0x429a5d
mov dword [ebx + 0x1ec], 1
jmp 0x429a5d
lea esi, [ebx + 0x218]
push dword [esi]
call fcn.00419f06
and dword [esi], 0
mov dword [esp], str.Proxy_replied_OK_to_CONNECT_request_n
push edi
mov dword [edi + 0x85d0], 1
call fcn.0042140e
and dword [edi + 0xc8], 0
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret