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

Disassembly:
push 0xffffffffffffffff
push 0x4079f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 1
push 2
lea ecx, [esp + 0x40]
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 [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0xc8], 0
mov byte [esp + 0x18], 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_]
or esi, 0xffffffff
mov edi, 0x40c774
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40c774
lea ecx, [esp + 0x1c]
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, [esp + 0x14]
mov byte [esp + 0xc4], 1
push ecx
lea ecx, [esp + 0x40]
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, [esp + 0x18]
mov byte [esp + 0xc8], 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, [esp + 0x24]
lea ecx, [esp + 0x38]
push edx
mov dword [esp + 0xc8], 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 0x4039a0
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 ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call ebx
push 1
lea ecx, [esp + 0x28]
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, [esp + 0x13]
lea ecx, [esp + 0x24]
push eax
push 0x40c774
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, [esp + 0x24]
mov byte [esp + 0xc4], 3
push ecx
lea ecx, [esp + 0x40]
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, [esp + 0x28]
mov byte [esp + 0xc8], 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 ecx, [esp + 0x38]
mov dword [esp + 0xc4], 4
call fcn.00401e90
lea ecx, [esp + 0x88]
mov dword [esp + 0xc4], esi
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 1
push 2
lea ecx, [esp + 0x40]
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 [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0xc8], 5
mov byte [esp + 0x18], 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, 0x40c774
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40c774
lea ecx, [esp + 0x1c]
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, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0xc8], 6
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, [esp + 0x18]
mov byte [esp + 0xc8], 5
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, [esp + 0x38]
push str.____connect_..
push ecx
mov dword [esp + 0xcc], 7
call edi
mov edx, dword [esp + 0xd4]
lea eax, [esp + 0x40]
push edx
push eax
call edi
mov ecx, dword [esp + 0xe0]
add esp, 0x10
push ecx
lea ecx, [esp + 0x3c]
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_]
mov dword [esp + 0xc4], 8
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
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 0x403b06
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 ebx
push 1
lea ecx, [esp + 0x28]
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, [esp + 0x13]
lea ecx, [esp + 0x24]
push eax
push 0x40c774
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, [esp + 0x24]
mov byte [esp + 0xc4], 9
push ecx
lea ecx, [esp + 0x40]
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, [esp + 0x28]
mov byte [esp + 0xc8], 8
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, [esp + 0x38]
mov dword [esp + 0xc4], esi
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_]
mov edx, dword [0x40b054]
mov eax, dword [0x40b060]
add edx, eax
push 0x44778000
push 0x4414
mov dword [0x40b070], edx
call fcn.00402820
add esp, 8
fstp st(0)
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [0x40b08c]
push 6
imul ecx, dword [0x40b09c]
push 1
push 2
mov dword [0x40b078], ecx
call fcn.00403d60
mov dword [ebp + 8], eax
mov eax, dword [0x40b084]
mov ecx, dword [0x40b080]
mov edx, dword [0x40b058]
mov edi, dword [0x40b06c]
sub esp, 0x10
add ecx, eax
and edi, edx
mov dl, byte [esp + 0x23]
mov ebx, esp
mov dword [0x40b074], ecx
mov dword [esp + 0x44], esp
mov dword [0x40b06c], edi
push 0
mov ecx, ebx
mov byte [ebx], 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, str.98989910312011510711510610597112107116115101971011161151031051071101211011151089710997106116116108102106108109110101118114106107115100103999810311611899112
mov ecx, esi
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
push edi
mov dword [esp + 0x4c], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x403c3b
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
mov esi, str.98989910312011510711510610597112107116115101971011161151031051071101211011151089710997106116116108102106108109110101118114106107115100103999810311611899112
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
or esi, 0xffffffff
mov byte [ecx + eax], 0
lea edx, [esp + 0x34]
push edx
call fcn.00402df0
add esp, 0x14
lea ecx, [esp + 0x24]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 8], esi
jne 0x403c66
xor eax, eax
jmp 0x403d3f
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [esp + 0xcc]
push eax
call edi
mov ecx, dword [esp + 0xd0]
mov dword [ebp + 0x4dc6c], eax
push ecx
mov word [esp + 0x18], 2
call ebx
mov edx, dword [0x40b084]
mov ecx, dword [0x40b094]
mov word [esp + 0x16], ax
mov eax, dword [0x40b05c]
add eax, edx
push 0x10
mov dword [0x40b060], eax
mov eax, dword [0x40b074]
and ecx, eax
mov dword [0x40b070], ecx
mov edx, dword [ebp + 0x4dc6c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
lea eax, [esp + 0x18]
push eax
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
push ecx
mov dword [esp + 0x24], edx
call esi
cmp eax, 0xffffffff
jne 0x403d04
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x403c78
push 0
push 0
push ebp
push 0x403db0
push 0
push 0
call dword [0x40c680]
mov eax, dword [0x40b074]
mov ecx, dword [0x40b0a0]
mov edx, dword [0x40b094]
add ecx, eax
imul edx, eax
mov dword [0x40b064], ecx
mov dword [0x40b0a4], edx
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb8
ret 0x14