Function at 0x1002a7f0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f4ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea ecx, [ebp - 0xb0]
call fcn.1002b250
mov al, byte [0x10047bb2]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.USER32.dll_IsCharLowerA]
mov ebx, dword [0x10047bd4]
lea ecx, [ebp - 0x260]
inc ebx
push ecx
push 0x101
mov byte [0x10047ba3], al
mov dword [0x10047bd4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.USER32.dll_GetInputState]
mov cl, byte [0x10047ba4]
push 0x6f35ffff
add cl, al
push 0xf6d1ffff
mov byte [0x10047ba4], cl
call fcn.10007830
mov edx, dword [0x10047bdc]
add esp, 8
add edx, eax
mov eax, dword [ebp - 0x7c]
test eax, eax
mov dword [0x10047bdc], edx
jne 0x1002a897
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]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, dword [0x10047bd4]
push 0x52adffff
push edx
call fcn.100076b0
add word [0x10047bb6], ax
add esp, 8
test edi, edi
je 0x1002ad31
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x1002ad31
mov cl, byte [0x10047bbc]
mov ebx, dword [eax]
or dx, 0xffff
push 0x420fffff
sub dx, word [0x10047bb8]
push 0x89c3ffff
neg cl
mov byte [0x10047ba3], cl
mov word [0x10047bac], dx
call fcn.10007740
mov edx, dword [0x10047bd0]
add esp, 8
add edx, eax
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x3c]
mov dword [0x10047bd0], edx
mov byte [ebp - 0x3c], 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_]
movsx ecx, word [0x10047bb8]
push 0x96d3ffff
push ecx
mov byte [ebp - 4], 6
call fcn.10007830
mov ecx, dword [0x10047bd0]
mov dl, byte [0x10047bc0]
add esp, 8
add ecx, 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]
dec dl
mov dword [0x10047bd0], ecx
mov byte [0x10047ba2], dl
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push ecx
push 0
push edx
lea ecx, [ebp - 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_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 [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], 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_]
movsx ecx, word [0x10047bb8]
movsx edx, word [0x10047bac]
imul ecx, ecx, 0x536bffff
mov edi, dword [0x10047bdc]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
and edx, edi
mov dword [0x10047be0], ecx
mov dword [0x10047bc8], edx
mov edx, dword [ebp - 0x14]
mov word [0x10047bae], 0xffff
mov ecx, dword [eax]
sub ecx, edx
mov byte [ebp - 4], 7
cmp ecx, 4
ja 0x1002a9d2
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x1c]
lea edi, [edx + 4]
push 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 0x1002a9fc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov dword [eax], ebx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov byte [edx + edi], 0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
call fcn.100084d0
add esp, 0xc
movsx eax, byte [0x10047ba5]
mov ecx, dword [0x1004164c]
and eax, 0x3ea3ffff
mov dword [0x10047bc0], eax
mov byte [ebp - 4], 8
mov al, byte [ecx]
sub al, 0x7b
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.1002ce30
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], esp
cmp eax, 3
mov eax, dword [ebp - 0x28]
jb 0x1002aa64
test eax, eax
je 0x1002aa64
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x28]
lea edx, [eax + 3]
mov dword [ebp + 8], edx
jmp 0x1002aa6d
mov ecx, 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 dword [ebp + 8], ecx
cmp dword [ebp - 0x24], 2
jb 0x1002aa88
test eax, eax
je 0x1002aa88
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x28]
lea ebx, [eax + 2]
jmp 0x1002aa8e
mov ebx, 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]
cmp dword [ebp - 0x24], 1
jb 0x1002aaa9
test eax, eax
je 0x1002aaa9
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x28]
lea edi, [eax + 1]
jmp 0x1002aaaf
mov edi, 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]
test eax, eax
je 0x1002aac1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [ebp - 0x28]
jmp 0x1002aac6
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 ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
xor ecx, ecx
mov cl, byte [edi]
push edx
xor edx, edx
mov dl, byte [ebx]
push edx
xor edx, edx
mov dl, byte [eax]
push ecx
mov ecx, dword [ebp - 0x40]
push edx
mov edx, dword [0x1004164c]
call fcn.10008f20
push eax
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov cl, byte [ebp + 0xb]
add esp, 0x18
xor ebx, ebx
mov byte [ebp - 0x50], cl
push ebx
lea ecx, [ebp - 0x50]
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 edi, [ebp - 0xd0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x50]
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_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 9
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, esi
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 edx, dword [0x10047be4]
xor eax, eax
cmp word [0x10047baa], bx
push 0xc3cfffff
push 0xcbc5ffff
setne al
add edx, eax
mov dword [0x10047be4], edx
call fcn.10007880
mov dl, byte [0x10047ba4]
push 0xe6b3ffff
add dl, al
push 0x3bcbffff
mov byte [0x10047ba4], dl
call fcn.100078b0
mov dword [0x10047bd4], 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]
add esp, 0x10
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, esi
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
push ecx
push ebx
push edx
mov ecx, esi
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [0x10047bc0]
mov ecx, dword [0x10047bc4]
push eax
push ecx
call fcn.10007740
movsx ecx, word [0x10047baa]
mov dx, word [0x10047bbc]
mov byte [0x10047ba7], al
movsx eax, word [0x10047bae]
add word [0x10047bb4], dx
push eax
push ecx
call fcn.10007650
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 0x10
mov dword [0x10047bc8], eax
lea ecx, [ebp - 0x60]
mov eax, dword [edx]
push eax
push ebx
push ecx
mov ecx, esi
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
movsx edx, word [0x10047bbc]
push edx
push 0x9b43ffff
call fcn.10007780
mov dword [0x10047be4], eax
movsx eax, byte [0x10047ba0]
push eax
push 0x11b1ffff
call fcn.10007830
add esp, 0x10
lea ecx, [ebp - 0x50]
mov dword [0x10047bc4], eax
mov byte [ebp - 4], 8
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_]
push 1
lea ecx, [ebp - 0x2c]
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_]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x1002ac8e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1002ac85
cmp al, 0xff
je 0x1002ac85
dec al
mov byte [ecx], al
jmp 0x1002ac8e
push ecx
call fcn.1002cda0
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], ebx
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
je 0x1002acbb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1002acb2
cmp al, 0xff
je 0x1002acb2
dec al
mov byte [ecx], al
jmp 0x1002acbb
push ecx
call fcn.1002cda0
add esp, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push 1
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xe
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], 0xd
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 byte [ebp - 4], 0xc
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 - 0x90]
mov byte [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 - 0xa0]
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 - 0xb0]
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 0x1002ad9c
push 1
lea ecx, [ebp - 0x60]
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 - 0x70]
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 - 0x80]
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 - 0x90]
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 - 0xa0]
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 - 0xb0]
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_]
xor al, al
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x26c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret