Function at 0x403990
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ae0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x62c
mov cl, byte [0x422b20]
push ebx
mov bl, byte [0x422b12]
or al, 0xff
movsx edx, word [0x422b02]
sub al, bl
mov ebx, dword [ebp + 8]
inc cl
push esi
push edi
mov byte [0x422b00], cl
add edx, 0xa2fffff
push ebx
lea ecx, [ebp - 0x80]
mov byte [0x422afa], al
mov dword [0x422b20], edx
call fcn.00411cc0
mov al, byte [0x422afa]
xor edi, edi
test al, al
mov dword [ebp - 4], edi
je 0x403a0d
mov al, byte [0x422afc]
mov word [0x422b0e], 1
test al, al
jne 0x403a14
mov word [0x422b0e], di
lea eax, [ebp - 0x230]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp - 0x4c]
or esi, 0xffffffff
cmp eax, edi
mov word [0x422b0c], si
jne 0x403a3c
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 dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, byte [0x422afe]
mov edx, 0x19d5ffff
mov edi, eax
sub edx, ecx
mov word [0x422b0e], si
mov dword [0x422b2c], edx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ax, word [0x422b08]
mov ecx, dword [0x422b30]
mov edx, dword [0x422b34]
inc ax
add edx, ecx
mov word [0x422b0c], ax
test edi, edi
mov dword [0x422b38], edx
je 0x403dba
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x403dba
mov ecx, dword [eax]
push 0
mov dword [ebp + 8], ecx
mov dl, byte [ebp + 0xb]
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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_]
movsx eax, word [0x422b04]
movsx ecx, byte [0x422afa]
xor edx, edx
or eax, ecx
cmp word [0x422b10], dx
mov dword [0x422b28], eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 6
setne dl
mov word [0x422b0a], dx
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x50]
push 0
push edx
lea ecx, [ebp - 0x20]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov al, byte [0x422af8]
mov cl, byte [0x422b00]
mov dl, byte [0x422b0a]
and al, cl
mov cl, byte [0x422b04]
mov byte [0x422aff], al
mov eax, dword [ebp - 0x1c]
add cl, dl
test eax, eax
mov dword [0x422b38], 0xdff7ffff
mov byte [0x422afd], cl
jne 0x403b32
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 edx, dword [ebp - 0x18]
push edx
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.00415da0
lea ecx, [ebp + 8]
push 4
lea edx, [ebp - 0x638]
push ecx
push edx
mov word [0x422b08], 1
call fcn.00415f00
mov al, byte [0x421f28]
add esp, 0x18
add al, 0x62
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.0041a770
mov eax, dword [ebp + 8]
mov edi, esp
mov ecx, eax
xor edx, edx
mov dl, byte [ebp + 0xa]
shr ecx, 0x18
push ecx
xor ecx, ecx
mov cl, ah
push edx
and eax, 0xff
push ecx
push eax
mov edx, 0x421f28
mov ecx, edi
call fcn.004196b0
lea edx, [ebp - 0xa0]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 0x18
mov byte [0x422aff], 1
lea edx, [ebp - 0x80]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, ebx
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea edi, [ebp - 0xa0]
mov ecx, esi
xor eax, eax
mov edx, dword [ebx + 8]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, edi
ja 0x403bf4
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x403c3d
mov eax, dword [ebx + 8]
push 0
add eax, edi
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
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 0x403c3d
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
add eax, ecx
mov ecx, edi
mov edx, ecx
lea esi, [ebp - 0xa0]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
add eax, ecx
mov dword [ebx + 8], ecx
mov byte [eax], 0
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax]
mov esi, eax
cmp ecx, esi
jae 0x403c4f
mov esi, ecx
sub eax, dword [ebx + 8]
cmp eax, esi
ja 0x403c5c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x403ca9
mov eax, dword [ebx + 8]
push 0
add eax, esi
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
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 0x403ca9
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x403c83
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 edi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
add edi, ecx
mov ecx, esi
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov esi, eax
cmp ecx, esi
jae 0x403cbc
mov esi, ecx
sub eax, dword [ebx + 8]
cmp eax, esi
ja 0x403cc9
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x403d16
mov eax, dword [ebx + 8]
push 0
add eax, esi
mov ecx, ebx
push eax
mov dword [ebp - 0x10], eax
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 0x403d16
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x403cf0
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 edi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
add edi, ecx
mov ecx, esi
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov dl, byte [0x422afd]
mov eax, dword [ebp - 0x1c]
test dl, dl
setne cl
xor esi, esi
mov byte [0x422aff], cl
cmp eax, esi
je 0x403d4d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403d44
cmp al, 0xff
je 0x403d44
dec al
mov byte [ecx], al
jmp 0x403d4d
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x50]
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_]
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 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_]
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
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, 1
jmp 0x403e18
push 1
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 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_]
push 1
lea ecx, [ebp - 0x40]
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_]
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x60]
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_]
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 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_]
push 1
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x644]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret