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

Disassembly:
push 0xffffffffffffffff
push 0x405fcb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd4]
mov esi, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x3c]
mov dword [esp + 0xcc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xd0], 1
call fcn.004024c0
mov byte [esp + 0xcc], 2
cmp dword [esi + 0x34], 0x10
jb 0x4029f1
mov ebp, dword [esi + 0x20]
jmp 0x4029f4
lea ebp, [esi + 0x20]
mov eax, dword [esi + 4]
movzx edi, word [esi + 0x38]
or ebx, 0xffffffff
cmp eax, ebx
je 0x402a0c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], ebx
mov ecx, edi
mov edx, ebp
mov edi, esi
call fcn.004021f0
test eax, eax
jne 0x402a34
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x402a2c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], ebx
lea eax, [esi + 8]
call fcn.00402350
mov edi, eax
test edi, edi
jne 0x402b8a
mov ecx, dword [esp + 0x1c]
mov ebx, 0x10
cmp dword [ecx + 0x18], ebx
jb 0x402a51
mov eax, dword [ecx + 4]
jmp 0x402a54
lea eax, [ecx + 4]
movzx edx, word [ecx + 0x70]
push edx
push eax
push str.CONNECT__s:_d_HTTP_1.1_r_n
lea eax, [esp + 0x2c]
call fcn.00401760
add esp, 0xc
cmp byte [esp + 0x1b], 0
je 0x402ad9
cmp dword [esi + 0x50], 0
je 0x402ad9
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esi + 0x58]
push eax
lea ecx, [esi + 0x3c]
push ecx
lea edi, [esp + 0x60]
mov byte [esp + 0xd4], 3
call fcn.00401810
add esp, 8
push str.Proxy_Authorization:_Basic
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
mov edx, edi
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x40733c
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
mov ecx, edi
mov byte [esp + 0xcc], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.Proxy_Connection:_Keep_Alive_r_nAccept:___r_nContent_Type:_text_html_r_nContent_length:_0_r_n_r_n
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
cmp dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
jae 0x402afa
lea ebx, [esp + 0x24]
xor edi, edi
test ebp, ebp
jbe 0x402b23
mov edx, dword [esi + 4]
push 0
mov eax, ebp
sub eax, edi
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x402bc6
add edi, eax
cmp edi, ebp
jb 0x402b00
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.004025b0
mov edi, eax
test edi, edi
jne 0x402c09
mov eax, dword [esp + 0x74]
cmp eax, 0xc8
je 0x402c86
cmp eax, 0x197
jne 0x402c46
cmp byte [esp + 0x1b], 0
jne 0x402c46
cmp dword [esi + 0x50], edi
je 0x402c46
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x402b80
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov byte [esp + 0x1b], 1
jmp 0x4029e6
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xd0], 1
call fcn.00402530
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
jmp 0x402cc1
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xd0], 1
call fcn.00402530
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0xfffffc1e
jmp 0x402cc1
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0xd0], 1
call fcn.00402530
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
jmp 0x402cc1
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xd0], 1
call fcn.00402530
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0xfffffc1d
jmp 0x402cc1
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0xd0], 1
call fcn.00402530
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00404f8a
add esp, 0xbc
ret 4