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

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [ebx]
push esi
push edi
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, dword [ebp + 0x170]
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x45b119
mov dword [esp + 0x2c], 0x36ee80
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + eax*4 + 0xd4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], edi
mov byte [ebx + 0x13e], 0
jmp 0x45b150
cmp byte [ebx + 0x135], 0
jne 0x45b357
movzx esi, word [esp + 0x54]
mov edx, dword [esp + 0x50]
push esi
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.00443fc0
mov eax, dword [ebp + 0xcc]
add esp, 0x10
cmp eax, edi
je 0x45b190
push eax
call dword [0x4c5c34]
add esp, 4
mov dword [ebp + 0xcc], edi
call fcn.00459390
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x45b908
mov eax, dword [esp + 0x50]
push esi
push eax
push str._s:_d
call fcn.0044ea20
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
je 0x45b8fe
push 1
push eax
push str.CONNECT
mov eax, ebx
call fcn.00459040
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45b328
mov ecx, dword [esp + 0x48]
cmp dword [ecx + 0xbc], 1
mov esi, 0x4ae69a
mov edi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x4b2114
je 0x45b206
mov dword [esp + 0x20], 0x4b2118
push ebp
mov ebx, str.Host:
call fcn.00458b50
add esp, 4
test eax, eax
jne 0x45b234
mov ebx, dword [esp + 0x14]
push ebx
push str.Host:__s_r_n
call fcn.0044ea20
mov edi, eax
add esp, 8
test edi, edi
je 0x45b915
push ebp
mov ebx, str.Proxy_Connection:
call fcn.00458b50
add esp, 4
test eax, eax
jne 0x45b24e
mov dword [esp + 0x24], str.Proxy_Connection:_Keep_Alive_r_n
push ebp
mov ebx, str.User_Agent:
call fcn.00458b50
add esp, 4
test eax, eax
jne 0x45b272
cmp dword [ebp + 0x304], eax
je 0x45b272
mov edx, dword [esp + 0x48]
mov esi, dword [edx + 0x150]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x14c]
test eax, eax
jne 0x45b285
mov eax, 0x4ae69a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push esi
push eax
movzx eax, word [esp + 0x60]
push edi
push edx
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x34]
push str.CONNECT__s:_d_HTTP__s_r_n_s_s_s_s
call fcn.00459a00
add esp, 0x20
test edi, edi
mov esi, eax
je 0x45b2c3
cmp byte [edi], 0
je 0x45b2c3
push edi
call dword [0x4c5c34]
add esp, 4
test esi, esi
jne 0x45b30e
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x48]
push edi
call fcn.00459ac0
mov esi, eax
add esp, 4
test esi, esi
jne 0x45b30e
push 0x4aeae4
mov eax, edi
call fcn.00459a00
mov esi, eax
add esp, 4
test esi, esi
jne 0x45b30e
push eax
lea ecx, [ebp + 0x8578]
push ecx
mov ecx, dword [esp + 0x54]
mov edx, edi
push edx
mov edi, ebx
call fcn.004593a0
add esp, 0xc
mov esi, eax
test esi, esi
mov dword [esp + 0x18], 0
je 0x45b328
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.00444050
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [0x4c5c34]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ae30
add esp, 8
test esi, esi
jne 0x45b937
mov edx, dword [esp + 0x48]
mov byte [edx + 0x135], 1
mov ebx, edx
xor edi, edi
mov eax, dword [ebx + 0xc8]
mov ecx, dword [ebx + 0xc4]
push eax
push ecx
call fcn.0045f060
push edx
push eax
call fcn.0045f090
mov edx, dword [esp + 0x3c]
sub edx, eax
add esp, 0x10
test edx, edx
jle 0x45b941
cmp dword [ebp + 0x448], 2
jne 0x45b3a3
mov eax, dword [esp + 0x30]
push edi
push 0xffffffffffffffff
push eax
call fcn.0045be90
add esp, 0xc
test eax, eax
je 0x45b9f8
mov ecx, dword [esp + 0x48]
lea eax, [ebp + 0x464]
mov ebx, eax
xor edi, edi
mov byte [ecx + 0x135], 0
mov dword [esp + 0x20], ebx
mov esi, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 1
mov edi, edi
cmp dword [esp + 0x14], 0
je 0x45b897
cmp dword [esp + 0x28], 0
jne 0x45b94f
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc8]
mov eax, dword [eax + 0xc4]
push edx
push eax
call fcn.0045f060
push edx
push eax
call fcn.0045f090
mov ecx, dword [esp + 0x3c]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x45b941
cmp ecx, 0x3e8
jl 0x45b422
mov ecx, 0x3e8
push ecx
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push ecx
call fcn.0045be90
add esp, 0xc
cmp eax, 0xffffffff
je 0x45b85c
test eax, eax
je 0x45b872
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x4c]
mov eax, 0x4000
sub eax, edi
push eax
push ebx
push ecx
push edx
call fcn.00443d20
add esp, 0x14
test eax, eax
jl 0x45b88b
xor ecx, ecx
cmp eax, ecx
je 0x45b47a
mov dword [esp + 0x14], ecx
jmp 0x45b872
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jg 0x45b4b0
cmp dword [ebp + 0x104], ecx
mov dword [esp + 0x14], ecx
je 0x45b4a6
cmp dword [ebp + 0x84fc], ecx
je 0x45b4a6
mov eax, dword [esp + 0x48]
mov byte [eax + 0x13e], 1
jmp 0x45b872
push str.Proxy_CONNECT_aborted
jmp 0x45b861
add edi, eax
cmp dword [esp + 0x14], 1
mov dword [esp + 0x24], edi
jle 0x45b556
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
lea ecx, [ebp + 0x464]
mov ebx, ecx
mov ecx, dword [esp + 0x40]
mov edx, edi
or edx, ecx
mov dword [esp + 0x20], ebx
je 0x45b50b
cdq
sub edi, eax
sbb ecx, edx
test ecx, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
jg 0x45b872
jl 0x45b4fe
test edi, edi
ja 0x45b872
mov dword [esp + 0x14], 0
jmp 0x45b872
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
xor edi, edi
push edx
mov dword [esp + 0x44], edi
call fcn.004617e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45b53e
push str.chunk_reading_DONE_n
push ebp
call fcn.00443fc0
mov dword [esp + 0x1c], edi
jmp 0x45b86f
mov eax, dword [esp + 0x34]
push eax
push str.Read__d_bytes_of_chunk__continue_n
push ebp
call fcn.00443fc0
add esp, 0xc
jmp 0x45b872
xor edi, edi
test eax, eax
mov dword [esp + 0x34], edi
jle 0x45b872
jmp 0x45b570
add dword [esp + 0x18], 1
cmp byte [ebx], 0xa
jne 0x45b733
cmp byte [ebp + 0x270], 0
je 0x45b59d
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
push 1
push ebp
call fcn.00443ed0
add esp, 0x14
cmp byte [ebp + 0x263], 0
mov eax, 2
je 0x45b5b0
mov eax, 3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
push ecx
push esi
push eax
push edx
call fcn.004441e0
add esp, 0x10
test eax, eax
jne 0x45b9fa
mov al, byte [esi]
cmp al, 0xd
je 0x45b74e
cmp al, 0xa
je 0x45b74e
mov eax, dword [esp + 0x18]
mov bl, byte [eax + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [eax + esi], 0
call fcn.0045fe20
add esp, 0xc
test eax, eax
je 0x45b60a
mov eax, dword [ebp + 0x90]
cmp eax, 0x191
je 0x45b62b
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.0045fe20
add esp, 0xc
test eax, eax
je 0x45b647
mov eax, dword [ebp + 0x90]
cmp eax, 0x197
jne 0x45b647
push esi
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.00459140
add esp, 0xc
test eax, eax
jne 0x45b9fa
jmp 0x45b711
push 0xf
push esi
push str.Content_Length:
call fcn.0045fe20
add esp, 0xc
test eax, eax
je 0x45b678
push 0xa
lea ecx, [esi + 0xf]
push 0
push ecx
call fcn.00471881
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x45b711
push str.close
push str.Connection:
push esi
call fcn.00459600
add esp, 0xc
test al, al
je 0x45b696
mov byte [esp + 0x12], 1
jmp 0x45b711
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.00459600
add esp, 0xc
test al, al
je 0x45b6cc
push str.CONNECT_responded_chunked_n
push ebp
call fcn.00443fc0
mov edx, dword [esp + 0x50]
push edx
mov byte [esp + 0x1f], 1
call fcn.004617c0
add esp, 0xc
jmp 0x45b711
push str.close
push str.Proxy_Connection:
push esi
call fcn.00459600
add esp, 0xc
test al, al
je 0x45b6ea
mov byte [esp + 0x12], 1
jmp 0x45b711
lea edi, [ebp + 0x90]
push edi
lea eax, [esp + 0x3c]
push eax
push str.HTTP_1._d__d
push esi
call fcn.00470ced
add esp, 0x10
cmp eax, 2
jne 0x45b711
mov ecx, dword [edi]
mov dword [ebp + 0x8564], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
mov byte [edx + esi], bl
mov ebx, dword [esp + 0x20]
lea esi, [eax + 1]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
add edi, 1
add ebx, 1
cmp edi, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], edi
jl 0x45b570
jmp 0x45b872
lea eax, [ebp + 0x464]
xor ecx, ecx
cmp dword [ebp + 0x90], 0x197
mov ebx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ebx
jne 0x45b471
cmp byte [ebp + 0x8504], cl
jne 0x45b471
mov edx, dword [esp + 0x3c]
or edx, dword [esp + 0x40]
mov dword [esp + 0x14], 2
je 0x45b7dd
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
call fcn.00443fc0
mov eax, dword [esp + 0x2c]
sub eax, edi
cdq
add esp, 0x10
sub dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
sbb eax, edx
test eax, eax
mov dword [esp + 0x40], eax
jg 0x45b872
jl 0x45b7d0
cmp dword [esp + 0x3c], 0
ja 0x45b872
mov dword [esp + 0x14], 0
jmp 0x45b872
cmp byte [esp + 0x13], 0
je 0x45b471
mov edx, dword [esp + 0x1c]
sub edx, edi
push edx
push str._d_bytes_of_chunk_left_n
push ebp
mov byte [ebp + 0xc5], 1
call fcn.00443fc0
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x45b810
add esi, 1
add edi, 1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x4c]
sub ecx, edi
push ecx
lea edx, [esi + 1]
push edx
push eax
call fcn.004617e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45b847
push str.chunk_reading_DONE_n
push ebp
call fcn.00443fc0
mov dword [esp + 0x1c], 0
jmp 0x45b86f
mov ecx, dword [esp + 0x1c]
push ecx
push str.Read__d_bytes_of_chunk__continue_n
push ebp
call fcn.00443fc0
add esp, 0xc
jmp 0x45b872
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push ebp
mov dword [esp + 0x30], 1
call fcn.00444050
add esp, 8
mov edx, dword [esp + 0x48]
push edx
call fcn.0045f670
add esp, 4
test eax, eax
jne 0x45b95c
mov edi, dword [esp + 0x24]
cmp edi, 0x4000
jb 0x45b3d0
cmp dword [esp + 0x28], 0
jne 0x45b94f
cmp dword [ebp + 0x8564], 0xc8
mov esi, dword [esp + 0x48]
je 0x45b8d2
push esi
call fcn.00459850
add esp, 4
test eax, eax
jne 0x45b9fa
cmp byte [esi + 0x128], al
je 0x45b8d2
mov byte [esp + 0x12], 1
jmp 0x45b8d9
cmp byte [esp + 0x12], 0
je 0x45b8e6
cmp dword [ebp + 0xcc], 0
jne 0x45b969
cmp dword [ebp + 0xcc], 0
je 0x45b986
mov ebx, dword [esp + 0x48]
xor edi, edi
jmp 0x45b150
push edi
call dword [0x4c5c34]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x18]
push eax
call dword [0x4c5c34]
push ebx
call dword [0x4c5c34]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00444050
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
mov edi, dword [esp + 0x4c]
mov ecx, dword [esi + edi*4 + 0xd4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + edi*4 + 0xd4], 0xffffffff
mov eax, dword [ebp + 0x90]
cmp eax, 0xc8
je 0x45b9c6
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.00444050
add esp, 0xc
cmp byte [esp + 0x12], 0
je 0x45b9b9
cmp dword [ebp + 0xcc], 0
je 0x45b9b9
mov byte [esi + 0x13e], 1
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov edx, dword [esi + 0x14c]
push edx
call fcn.0043ae30
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esi + 0x14c], 0
push ebp
mov byte [ebp + 0x8500], 1
call fcn.00443fc0
add esp, 0xc
mov byte [ebp + 0xc5], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret