Function at 0x10005fc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x19c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
mov ecx, dword [ebp + 0x29228]
cmp ecx, ebx
je 0x10005ffc
push ebx
push ebx
push ebx
push ebx
call fcn.10014250
mov ecx, dword [ebp + 0x29228]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x29228]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov dword [ebp + 0x29228], ebx
mov eax, dword [ebp + 0x27ce0]
cmp eax, ebx
je 0x10006082
push 0xc0
mov dword [0x10057fcc], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10006025
mov ecx, eax
call fcn.10019590
jmp 0x10006027
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x29228], eax
jne 0x1000605d
push str.Create_OpenSSL_Failed_
push 8
call fcn.1000be40
add esp, 8
mov ecx, ebp
push 0xf4241
push 0xf6950
call fcn.10008a70
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret
mov dword [eax + 0xb8], 1
mov eax, dword [ebp + 0x27ce0]
mov dword [0x10057fcc], eax
call fcn.1000f5c0
test eax, eax
je 0x100060d4
push 0x2710
jmp 0x100060d9
push 0x11e0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x1000609c
mov ecx, eax
call fcn.10015590
jmp 0x1000609e
xor eax, eax
cmp eax, ebx
mov dword [ebp + 0x29228], eax
jne 0x10006072
push str.Create_SSL_Failed_
push 8
call fcn.1000be40
add esp, 8
mov ecx, ebp
push 0xf4241
push 0xf6950
call fcn.10008a70
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret
push 0x1388
mov ecx, dword [ebp + 0x29228]
push 0xea60
push 1
call fcn.100143a0
mov eax, dword [ebp + 0xac]
cmp eax, ebx
jne 0x100060fa
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 + 0x29228]
xor esi, esi
mov si, word [ebp + 0xc8]
mov edx, dword [ecx]
push esi
push eax
call dword [edx + 4]
cmp eax, ebx
jge 0x10006161
mov ecx, dword [ebp + 0xac]
cmp ecx, ebx
jne 0x10006124
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]
push eax
xor eax, eax
mov ax, word [ebp + 0xc8]
push eax
push ecx
push str.Connect_to___s:_d__Failed_err:_d
push 4
call fcn.1000be40
mov ecx, dword [ebp + 0x29228]
add esp, 0x14
cmp ecx, ebx
je 0x1000614f
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp + 0x29228], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x19c
ret
mov eax, dword [ebp + 0xa4]
push edi
cmp eax, 1
je 0x100063f6
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x29228]
mov dword [esp + 0x24], 0x80
stosw word es:[edi], ax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [esp + 0x28], 0x17
jne 0x100063f6
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3e]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call esi
mov edx, dword [esp + 0x3c]
and eax, 0xffff
push eax
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x42]
push eax
call esi
mov ecx, dword [esp + 0x40]
and eax, 0xffff
push eax
push ecx
call esi
mov edx, dword [esp + 0x42]
and eax, 0xffff
push eax
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x48]
push eax
call esi
mov ecx, dword [esp + 0x46]
and eax, 0xffff
push eax
push ecx
call esi
mov edx, dword [esp + 0x48]
and eax, 0xffff
push eax
push edx
call esi
and eax, 0xffff
push eax
push 0x10021154
lea eax, [esp + 0xcc]
push 0x104
push eax
call fcn.1000c010
mov cl, byte [esp + 0x4f]
lea edi, [esp + 0xd4]
mov byte [esp + 0x3c], cl
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x18]
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 0x100062b5
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov byte [ebx + eax], 0
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 [esp + 0x18]
mov ebx, eax
add ebp, 0xb8
mov esi, dword [ecx]
cmp esi, ebx
jae 0x100062cf
mov ebx, esi
lea edx, [esp + 0x10]
cmp ebp, edx
jne 0x1000633d
cmp dword [ebp + 8], ebx
jae 0x100062e2
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov eax, dword [ebp + 8]
sub eax, ebx
cmp eax, esi
jae 0x100062f5
mov esi, eax
test esi, esi
jbe 0x1000632c
mov ecx, dword [ebp + 4]
sub eax, esi
add ebx, ecx
push eax
lea edx, [ebx + esi]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
mov edi, dword [ebp + 8]
add esp, 0xc
sub edi, esi
mov ecx, ebp
push 0
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 0x1000632c
push edi
mov ecx, ebp
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_]
push 0
push 0
mov ecx, ebp
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__::erase_unsigned_int__unsigned_int_]
jmp 0x100063c3
test ebx, ebx
jbe 0x1000638a
cmp ebx, eax
jne 0x1000638a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10006352
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]
cmp byte [eax - 1], 0xfe
jae 0x1000638a
push 1
mov ecx, ebp
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 [esp + 0x14]
test eax, eax
jne 0x1000636f
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 [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x100063c3
push 1
push ebx
mov ecx, ebp
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 0x100063c3
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x100063a7
mov esi, 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 [ebp + 4]
mov ecx, ebx
mov eax, ecx
push ebx
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, ebp
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 eax, dword [esp + 0x14]
test eax, eax
je 0x100063f6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x100063ed
cmp al, 0xff
je 0x100063ed
dec al
pop edi
pop esi
mov byte [ecx], al
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret
push ecx
call fcn.1001b978
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x19c
ret