Function at 0x403cd0
Capabilities:
Connect socket
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407a3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
push 1
push 2
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x40c0a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40c0a8
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::str_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0xc8]
push edx
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403d85
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call esi
push 1
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x3c]
push eax
push 0x40c0a8
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::str_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0xc8]
push edx
mov dword [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403df1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x24]
push eax
push 0x40c0a8
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::str_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
push 1
push 2
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 6
mov byte [ebp - 0x24], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x40c0a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40c0a8
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc4]
push eax
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::str_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
lea ecx, [ebp - 0xc8]
push 0x408524
push ecx
mov dword [ebp - 4], 8
call edi
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc8]
push edx
push eax
call edi
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push ecx
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0xc8]
push edx
mov dword [ebp - 4], 9
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403f0e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x40c0a8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40c0a8
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::str_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0x78]
mov dword [ebp - 0x2c], edx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xc8], edx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0xc8]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xc8], edx
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [0x40b0b0]
mov edx, dword [0x40b09c]
mov ecx, eax
imul edx, dword [0x40b098]
imul ecx, dword [0x40b0a4]
mov dword [0x40b064], ecx
mov ecx, dword [0x40b060]
imul ecx, eax
push 6
lea esi, [ebx + 8]
push 1
push 2
mov dword [0x40b0a0], edx
mov dword [ebp - 0x44], 1
mov dword [0x40b060], ecx
mov dword [ebp - 0x2c], esi
call fcn.00404160
mov dword [esi], eax
mov edx, dword [0x40b0a0]
sub edx, dword [0x40b0ac]
mov dword [0x40b0b0], edx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x404041
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x404142
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebx + 0x4dc6c], eax
mov ecx, dword [0x40b068]
imul ecx, dword [0x40b0a8]
mov edx, dword [ebp + 0xc]
mov dword [0x40b06c], ecx
push edx
mov word [ebp - 0x3c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3a], ax
mov eax, dword [0x40b0bc]
imul eax, dword [0x40b0a8]
mov dword [0x40b074], eax
mov ecx, dword [ebx + 0x4dc6c]
push 0x10
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [eax]
mov eax, dword [esi]
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40411b
lea ecx, [ebp - 0x40]
push 0x408cf8
push ecx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x40], 0x1d
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x28]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x40b0b4]
mov eax, 0x404109
imul ecx, dword [0x40b080]
mov dword [0x40b078], ecx
ret
push 0
push 0
push ebx
push 0x4041b0
push 0
push 0
call dword [0x40bfb0]
mov edx, dword [0x40b098]
mov eax, dword [0x40b060]
sub edx, eax
mov dword [0x40b0b0], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14