Function at 0x40a410
Capabilities:
Create tcp socket
Create udp socket
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cdf9
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x427020]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x427020]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, ecx
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x54]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
call eax
lea ecx, [edi + 0xe0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
lea ecx, [edi + 0x108]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
lea ecx, [edi + 0xa8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
lea ecx, [edi + 0xc4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov ecx, dword [edi + 0x100]
mov edx, dword [ecx + 4]
lea esi, [edi + 0xfc]
push edx
mov ecx, esi
call fcn.0040d340
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov eax, dword [edi + 0x128]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x124]
push ecx
mov ecx, esi
call fcn.0040d340
mov eax, dword [esi + 4]
mov dx, word [ebp + 0xc]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], esi
push eax
lea ecx, [edi + 0x8c]
mov word [edi + 4], dx
call dword [0x41e154]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
je 0x40abb4
mov esi, edi
call fcn.0040a2e0
test eax, eax
je 0x40abb4
cmp dword [edi + 0x14], 0
je 0x40ab89
push 0
push str._r_n_r_n
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x40abb4
add eax, 2
push eax
push 0
lea edx, [esp + 0xc0]
push edx
mov ecx, ebx
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__::substr_unsigned_int__unsigned_int_]
lea esi, [esp + 0x20]
mov dword [esp + 0x100], 0
call fcn.0040cd90
push 0
push 0x422764
lea ecx, [esp + 0xc0]
mov byte [esp + 0x108], 1
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov esi, eax
add esi, 2
push esi
push 0x422764
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [eax], ebx
je 0x40a86c
jmp 0x40a5d7
mov ebx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0xc4]
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__::substr_unsigned_int__unsigned_int_]
push 0
push 0x422768
lea ecx, [esp + 0xdc]
mov byte [esp + 0x108], 2
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [eax], esi
je 0x40a82d
push esi
push 0
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0xe0]
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__::substr_unsigned_int__unsigned_int_]
push 0
push 0x422758
lea ecx, [esp + 0xa4]
mov byte [esp + 0x108], 3
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_not_of_char_const___unsigned_int_const]
push eax
push 0
lea ecx, [esp + 0xa4]
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__::erase_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push eax
push 0x422758
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_not_of_char_const___unsigned_int_const]
add eax, 1
push eax
lea ecx, [esp + 0xa4]
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__::erase_unsigned_int__unsigned_int_]
cmp dword [esp + 0xb0], 0
je 0x40a818
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
add esi, 1
push esi
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0xe0]
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__::substr_unsigned_int__unsigned_int_]
push 0
push 0x422758
lea ecx, [esp + 0x88]
mov byte [esp + 0x108], 4
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_not_of_char_const___unsigned_int_const]
push eax
push 0
lea ecx, [esp + 0x88]
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__::erase_unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
push eax
push eax
push 0x422758
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_not_of_char_const___unsigned_int_const]
add eax, 1
push eax
lea ecx, [esp + 0x88]
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__::erase_unsigned_int__unsigned_int_]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x60]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0x34], edx
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x3c], 0
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [sym.imp.MSVCR80.dll_tolower]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.0040dfa0
mov eax, dword [esp + 0xbc]
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0xb4], esi
jae 0x40a7ac
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x100], 5
cmp dword [esp + 0x98], esi
mov eax, dword [esp + 0x84]
jae 0x40a7d6
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040cdc0
mov ecx, eax
call dword [0x41e154]
lea ecx, [esp + 0x38]
mov byte [esp + 0x100], 4
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 + 0x80]
mov byte [esp + 0x100], 3
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 ebx, dword [esp + 0x10]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 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_]
lea esi, [ebx + 2]
push esi
push 0x422764
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ebx, eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x100], 1
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 ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], ebx
jne 0x40a5d3
push str.host
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x100], 6
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x58]
push eax
lea ebx, [esp + 0x3c]
lea esi, [esp + 0x24]
mov dword [esp + 0x34], edx
call fcn.0040ceb0
mov esi, eax
lea ecx, [esp + 0x20]
cmp ecx, dword [esi]
je 0x40a8ad
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x30]
cmp edx, dword [esi + 4]
lea ecx, [esp + 0x38]
sete bl
mov byte [esp + 0x100], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x40a911
push str.host
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x108], 7
call fcn.0040cdc0
mov ecx, eax
call dword [0x41e154]
lea ecx, [esp + 0x38]
mov byte [esp + 0x100], 1
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 ecx, dword [esp + 0x14]
push 0
push 0x422774
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, eax
cmp dword [edx], ebx
je 0x40aa08
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push str.http:__
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 8
call dword [0x41e154]
push str.host
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x104], 9
call fcn.0040cdc0
push eax
lea ecx, [esp + 0x84]
call dword [0x41e134]
lea ecx, [esp + 0x38]
mov byte [esp + 0x100], 8
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 esi, [esp + 0x10]
call fcn.00407000
movzx ecx, word [ebp + 0xc]
push ecx
push str.:_ld
mov edi, esi
mov byte [esp + 0x108], 0xa
call fcn.00408770
mov edx, dword [esp + 0x18]
add esp, 8
push edx
lea ecx, [esp + 0x84]
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__::operator_char_const__]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x80]
push eax
push ebx
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__::insert_unsigned_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, esi
call fcn.004036f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x100], 1
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 edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 0x422764
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, eax
cmp dword [ecx], ebx
je 0x40ab5c
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push str.Proxy_Connection:_Keep_Alive_r_n
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 0xb
call dword [0x41e154]
cmp dword [edi + 0x4c], 0
je 0x40ab31
cmp dword [edi + 0x68], 0
je 0x40ab31
lea ecx, [esp + 0x80]
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 edx, [edi + 0x38]
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 0xc
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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x422768
lea ecx, [esp + 0x84]
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__::operator_char_const__]
lea eax, [edi + 0x54]
push eax
lea ecx, [esp + 0x84]
call dword [0x41e134]
lea ecx, [esp + 0x38]
push ecx
call fcn.00402ee0
push str.Proxy_Authorization:_Basic
lea ecx, [esp + 0xa0]
mov byte [esp + 0x104], 0xd
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__::operator_char_const__]
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
jae 0x40aae9
lea eax, [esp + 0x84]
lea edx, [esp + 0x38]
push edx
call fcn.00401650
push eax
lea ecx, [esp + 0xa0]
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__::operator_char_const__]
push 0x422764
lea ecx, [esp + 0xa0]
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__::operator_char_const__]
lea esi, [esp + 0x38]
call fcn.004014c0
lea ecx, [esp + 0x80]
mov byte [esp + 0x100], 0xb
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 ecx, dword [esp + 0x14]
lea eax, [esp + 0x9c]
push eax
add ebx, 2
push ebx
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__::insert_unsigned_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 1
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 eax, [esp + 0x20]
mov byte [esp + 0x100], 0
call fcn.0040d3d0
lea ecx, [esp + 0xb8]
mov dword [esp + 0x100], 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 ebx, dword [esp + 0x14]
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x18], eax
jb 0x40ab9b
mov ebx, dword [ebx + 4]
jmp 0x40ab9e
add ebx, 4
push eax
push ebx
mov esi, edi
call fcn.00409b30
xor ecx, ecx
cmp dword [esp + 0x18], eax
sete cl
mov eax, ecx
jmp 0x40abb6
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00413588
mov esp, ebp
pop ebp
ret 0xc