Function at 0x470aa0
Capabilities:
Get hostname
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51150b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x158], eax
mov eax, 0x55fc50
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x15c], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x471435
mov eax, dword [0x55fc7c]
cmp eax, 0x7fffffff
je 0x47143c
cmp dword [0x55fc4c], 0
jne 0x470cd5
push 0x80
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5e00
xor edi, edi
mov dword [ebp - 0x120], 0x5e00
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x118], esi
push eax
push esi
push edi
push 0x86
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x10c], esi
mov edx, esi
test esi, esi
je 0x470cb6
test edi, edi
jne 0x470cb0
cmp dword [edx + 0xd8], 0xe
je 0x470c9f
cmp dword [edx + 0x44], 1
jne 0x470c9f
mov eax, dword [edx + 0x10]
test eax, eax
je 0x470c9f
mov esi, dword [edx + 0xa4]
test esi, esi
je 0x470bcd
mov ecx, dword [eax + 0xc]
cmp word [ecx], 2
je 0x470bd9
mov eax, dword [eax + 8]
test eax, eax
jne 0x470bc0
jmp 0x470c9f
mov eax, dword [0x55fc44]
push dword [ecx + 4]
mov dword [ebp - 0x114], ecx
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x110], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.mDNS_on_interface__s
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x12c], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 4
mov dword [ecx + 0x14], 0xf
mov eax, dword [str.mdns]
mov dword [ecx], eax
mov byte [ecx + 4], 0
push 0x45
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov ecx, esi
push 0x70
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.0040b130
mov dword [esi], eax
mov edi, eax
mov dword [esi + 0x10], 0x6a
mov ecx, 0x1a
mov dword [esi + 0x14], 0x6f
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_bellmainplatformwin32MDNSService.cpp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [eax + 0x6a], 0
push dword [0x55fc44]
mov byte [ebp - 4], 1
call dword [ebp - 0x110]
mov edi, dword [ebp - 0x114]
push 0
push dword [edi + 4]
call fcn.0048a060
mov edx, dword [ebp - 0x10c]
add esp, 0x48
mov dword [0x55fc4c], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0x10c], edx
test edx, edx
jne 0x470b90
mov esi, dword [ebp - 0x118]
push dword [edi + 4]
lea eax, [ebp - 0x90]
push eax
push dword [0x55fc4c]
call fcn.00489fe0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x134], ecx
xor edi, edi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x148], ecx
mov esi, dword [ebp + 0x20]
mov byte [ebp - 4], 4
mov esi, dword [esi]
cmp byte [esi + 0xd], cl
jne 0x4710be
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x10]
lea eax, [ecx + 0x18]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x12c], eax
mov eax, closesocket
sub eax, edx
mov dword [ebp - 0x144], edx
cmp eax, 1
jb 0x471449
cmp dword [ecx + 0x14], 0x10
jb 0x470d6e
mov ecx, dword [ecx]
mov dword [ebp - 0x10c], ecx
inc edx
mov dword [ebp - 0x98], 0
mov edi, 0xf
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x114], edx
xorps xmm0, xmm0
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x110], eax
movups xmmword [ebp - 0xa8], xmm0
cmp edx, edi
jbe 0x470dee
mov edi, edx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x470dbc
mov edi, closesocket
jmp 0x470dc7
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040b130
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x144]
push edi
push ecx
push eax
mov dword [ebp - 0x98], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov word [eax + edi], 0x3d
mov eax, dword [ebp - 0x12c]
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x470e2c
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040b3b0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x170], xmm0
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x130], xmm0
movq qword [ebp - 0xf8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 0x18
mov byte [ebp - 4], 6
call fcn.0050945c
mov edi, eax
add esp, 4
test edi, edi
je 0x470ea9
movups xmm0, xmmword [ebp - 0x170]
mov ecx, 0xf
mov byte [ebp - 0x108], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x130]
movq qword [edi + 0x10], xmm0
jmp 0x470eb1
mov ecx, dword [ebp - 0xf4]
xor edi, edi
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 8
cmp ecx, 0x10
jb 0x470eef
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x470ee5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47126d
push ecx
push edx
call fcn.0050948c
add esp, 8
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x470f2d
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x470f23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47126d
push ecx
push edx
call fcn.0050948c
add esp, 8
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
cmp eax, dword [ebp - 0x120]
je 0x470f6d
mov dword [ebp - 0x114], 0
mov dword [eax], edi
add eax, 4
mov dword [ebp - 0x14c], eax
jmp 0x470f92
lea ecx, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00470810
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x124], eax
mov eax, dword [eax - 4]
cmp dword [eax + 0x14], 0x10
jb 0x470fa3
mov eax, dword [eax]
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x12c], eax
cmp ecx, dword [ebp - 0x11c]
je 0x470fca
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x138], ecx
jmp 0x470ff5
lea eax, [ebp - 0x12c]
push eax
push ecx
lea ecx, [ebp - 0x13c]
call fcn.004706b0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x118], eax
mov edi, dword [ebp - 0x114]
mov byte [ebp - 4], 4
test edi, edi
je 0x471052
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x471036
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x47102c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4713d9
mov eax, edx
push ecx
push eax
call fcn.0050948c
add esp, 8
push 0x18
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.0050948c
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x471078
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x471074
cmp esi, dword [eax + 8]
jne 0x471074
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x471064
mov esi, eax
jmp 0x47108e
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x47108e
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x471082
cmp byte [esi + 0xd], 0
je 0x470d35
mov esi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x150]
mov edi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], ecx
jmp 0x4710c0
xor esi, esi
mov dword [ebp - 0x12c], 0
cmp eax, dword [ebp - 0x11c]
je 0x4710e3
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x138], eax
jmp 0x47110e
lea ecx, [ebp - 0x12c]
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.004706b0
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x13c]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x10c], esi
push 0x5145b0
push dword [ebp - 0x154]
lea eax, [ebp - 0xf0]
push eax
call fcn.004705d0
add esp, 0xc
mov edx, dword [ebp - 0x158]
mov byte [ebp - 4], 0xa
cmp dword [edx + 0x14], 0x10
mov ecx, dword [edx + 0x10]
jb 0x47113d
mov edx, dword [edx]
push ecx
push edx
mov ecx, eax
call fcn.0040b3b0
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xc4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc8], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0xd8]
mov dword [eax + 0x14], 0xf
push 6
mov byte [eax], 0
push str..local
mov byte [ebp - 4], 0xb
call fcn.0040b3b0
xorps xmm0, xmm0
mov dword [ebp - 0xb0], 0
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xac], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb0], xmm0
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0xc4]
cmp ecx, 0x10
jb 0x471222
mov edx, dword [ebp - 0xd8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x471218
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47126d
push ecx
push edx
call fcn.0050948c
add esp, 8
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
mov ecx, dword [ebp - 0xdc]
mov byte [ebp - 4], 0xe
cmp ecx, 0x10
jb 0x47127d
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x471273
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x471273
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050948c
add esp, 8
cmp dword [ebp - 0xac], 0x10
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x128]
cmovae eax, dword [ebp - 0xc0]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
cmp dword [ecx + 0x14], 0x10
mov byte [ebp - 0xf0], 0
jb 0x4712ba
mov ecx, dword [ecx]
push esi
push 0
push dword [ebp + 0x1c]
push eax
push ecx
push dword [0x55fc4c]
call fcn.00489e70
push 8
mov dword [ebp - 0x128], eax
call fcn.0050945c
add esp, 0x1c
mov dword [ebp - 0x15c], eax
test eax, eax
je 0x4712f8
mov ecx, dword [ebp - 0x128]
mov dword [eax], vtable.implMDNSService.0
mov dword [eax + 4], ecx
jmp 0x4712fa
xor eax, eax
mov ecx, dword [ebp - 0x140]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xac]
cmp ecx, 0x10
jb 0x47133c
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x471332
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4713d9
push ecx
push edx
call fcn.0050948c
add esp, 8
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
test ecx, ecx
je 0x4713b0
mov esi, ecx
cmp esi, edi
je 0x47137b
mov ecx, esi
call fcn.00421900
add esi, 4
cmp esi, edi
jne 0x471367
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x120]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x4713a0
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4713d9
push edx
push ecx
call fcn.0050948c
mov esi, dword [ebp - 0x10c]
add esp, 8
test esi, esi
je 0x4713e9
mov ecx, dword [ebp - 0x11c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4713df
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4713df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0050948c
add esp, 8
push 0x55fc50
call sub.MSVCP140.dll__Mtx_unlock
mov eax, dword [ebp + 0x20]
add esp, 4
push dword [eax + 4]
lea eax, [ebp + 0x20]
push eax
mov ecx, eax
call fcn.00402980
push 0x40
push dword [ebp + 0x20]
call fcn.0050948c
mov eax, dword [ebp - 0x140]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
dec eax
push 6
mov dword [0x55fc7c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
call fcn.0040b100
int3