Function at 0x40900b
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov eax, 0x45e867
call fcn.0045d320
sub esp, 0x94
movzx eax, word [0x47a53c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push eax
mov ecx, 0x47a538
call fcn.00414407
push eax
mov ecx, esi
call fcn.0040854e
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x24], edi
jne 0x409074
movzx eax, word [0x47a53c]
push eax
lea eax, [ebp - 0x2c]
push dword [0x47a538]
push str.Couldnt_connect_to_HTTPs_proxy__s:_d
push eax
call fcn.004109c8
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x18]
call fcn.00412af0
mov eax, 0x1bb
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push str.CONNECT__s:_d_HTTP_1.1_r_nHost:__s:_d_r_n
push eax
call fcn.00413c31
add esp, 0x18
lea ecx, [ebp - 0x18]
push str.Content_Length:_0_r_nProxy_Connection:_Keep_Alive_r_nPragma:_no_cache_r_n
call fcn.00413176
mov esi, 0x47a530
mov ecx, esi
call fcn.00413381
test eax, eax
je 0x4090ce
mov ecx, 0x47a52c
call fcn.00413381
test eax, eax
jne 0x409191
push 0x46dd38
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00412faf
push 0x47a52c
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00412f43
add esp, 0x18
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00412d67
push ebx
lea ecx, [ebp - 0xa0]
call fcn.004100a2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00412af0
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 5
call fcn.00412afc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004102b8
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00414407
push eax
lea eax, [ebp + 8]
push str.Proxy_Authorization:_Basic__s_r_n
push eax
call fcn.00413c31
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00412d67
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
call fcn.00413195
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00412d67
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00411cb9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00412d67
push 0x46dd3c
lea ecx, [ebp - 0x18]
call fcn.00413176
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0041336f
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00414407
push ebx
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
je 0x4091e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x3c]
push str.ERROR__d_while_sending_data_to_proxy
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x3c]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp + 8]
call fcn.00412af0
mov byte [ebp - 4], 8
xor esi, esi
lea eax, [esi + 0x400]
lea ecx, [ebp + 8]
push eax
call fcn.004131b3
push ebx
add eax, esi
push 0x400
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jge 0x409240
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x4c]
push str.ERROR__d_while_reading_data_from_proxy
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
add esi, eax
lea ecx, [ebp + 8]
push esi
call fcn.00413289
push str._r_n_r_n
lea ecx, [ebp + 8]
call fcn.00413859
cmp eax, ebx
jl 0x4091f6
push 0x20
lea ecx, [ebp + 8]
call fcn.004132e4
inc eax
push 3
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00413735
lea eax, [ebp - 0x14]
push 0x46e0bc
push eax
mov byte [ebp - 4], 9
call fcn.00413452
pop ecx
cmp al, bl
pop ecx
je 0x4092e8
lea eax, [ebp - 0x14]
push 0x46e0b8
push eax
call fcn.00413425
pop ecx
cmp al, bl
pop ecx
je 0x4092c0
lea eax, [ebp - 0x34]
push str.ERROR:_Http_Proxy_Authentication_Not_Implemented_yet_
push eax
call fcn.004109c8
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x14]
call fcn.00414407
push eax
lea eax, [ebp - 0x44]
push str.ERROR:_Proxy_Connection_code_s
push eax
call fcn.004109c8
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x465b58
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00412d67
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00412d67
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00412d67
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4