Function at 0x40c9d0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440b6c
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x44e2d0]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push esi
push edi
mov eax, dword [0x44e2d0]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 1
jne 0x40cd42
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
push eax
mov dword [ebx + 0x10], 3
call fcn.00410170
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
push ebx
push eax
call fcn.0040ff70
mov ax, word [ebx + 0x70]
mov esi, dword [ebx + 0x6c]
lea ecx, [esp + 0x4c]
push ecx
mov word [esp + 0x156], ax
mov dword [esp + 0x158], esi
call fcn.00404310
push str._HTTP_1.1_r_n
mov dword [esp + 0x584], 0
mov edx, dword [esp + 0x156]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
push eax
push ecx
push 0x4468ac
push ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push ecx
lea eax, [esp + 0x6c]
push str.CONNECT
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004050e0
add esp, 4
push eax
call fcn.004080f0
mov eax, dword [ebx + 0x88]
add esp, 8
test eax, eax
mov edi, 0x10
je 0x40cc43
push 0x3ff
lea ecx, [esp + 0x171]
push 0
push ecx
mov byte [esp + 0x178], 0
call fcn.004307b0
add esp, 0xc
lea edx, [esp + 0xcc]
push edx
call fcn.00404310
lea eax, [ebx + 0x90]
push eax
push ecx
push 0x4468ac
push ecx
lea ecx, [ebx + 0x74]
push ecx
lea edx, [esp + 0xe0]
push edx
mov byte [esp + 0x598], 1
call fcn.00408340
add esp, 0xc
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.00408340
add esp, 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0xcc]
call fcn.00404410
mov esi, eax
lea ecx, [esp + 0x150]
lea eax, [esp + 0xcc]
mov byte [esp + 0x580], 2
call fcn.00404410
cmp dword [eax + 0x18], edi
mov esi, dword [esi + 0x14]
jb 0x40cb77
mov ecx, dword [eax + 4]
jmp 0x40cb7a
lea ecx, [eax + 4]
lea eax, [esp + 0x2c]
push eax
push esi
lea eax, [esp + 0x174]
call fcn.0041aa20
add esp, 8
cmp dword [esp + 0x168], edi
jb 0x40cba8
mov ecx, dword [esp + 0x154]
push ecx
call fcn.004293c2
add esp, 4
mov byte [esp + 0x580], 1
cmp dword [esp + 0x28], edi
mov dword [esp + 0x168], 0xf
mov dword [esp + 0x164], 0
mov byte [esp + 0x154], 0
jb 0x40cbe1
mov edx, dword [esp + 0x14]
push edx
call fcn.004293c2
add esp, 4
push 0x4468bc
push ecx
lea eax, [esp + 0x174]
push eax
push ecx
lea ecx, [esp + 0x5c]
push str.Proxy_Authorization:_Basic
push ecx
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 8
lea ecx, [esp + 0x118]
mov byte [esp + 0x580], 0
call fcn.004043a0
lea edx, [esp + 0x118]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00427f83
add esp, 4
push str.Content_length:_0_r_n_r_n
push ecx
push str.Proxy_Connection:_Keep_Alive_r_n
push ecx
push str.Content_Type:_text_html_r_n
push ecx
lea eax, [esp + 0x64]
push str.Accept:___r_n
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 0xc
push eax
call fcn.004080f0
add esp, 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x4c]
call fcn.00404410
mov esi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x4c]
mov byte [esp + 0x580], 3
call fcn.00404410
cmp dword [eax + 0x18], edi
mov esi, dword [esi + 0x14]
jb 0x40ccb3
mov eax, dword [eax + 4]
jmp 0x40ccb6
add eax, 4
mov ebx, dword [ebx + 0xc]
cmp ebx, 0xffffffff
je 0x40ccc9
push 0
push esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [esp + 0x48], edi
jb 0x40ccdc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004293c2
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x28], edi
mov esi, 0xf
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x40cd02
mov edx, dword [esp + 0x14]
push edx
call fcn.004293c2
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x580], 0xffffffff
call fcn.004043a0
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.00427f83
add esp, 4
jmp 0x40cd4d
mov ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.0040bbf0
mov ecx, dword [esp + 0x578]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.0042877c
mov esp, ebp
pop ebp
ret 4