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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x51df40]
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 - 0x12c], eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x10c], 0
mov eax, 0x5209bc
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x150], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x4608de
mov eax, dword [0x5209e8]
cmp eax, 0x7fffffff
je 0x4608e5
cmp dword [0x5209b4], 0
jne 0x4600aa
push 0x80
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5e00
xor edi, edi
mov dword [ebp - 0x118], 0x5e00
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], esi
push eax
push esi
push edi
push 0x86
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x124], esi
mov edx, esi
test esi, esi
je 0x46008b
nop word [eax + eax]
test edi, edi
jne 0x460085
cmp dword [edx + 0xd8], 0xe
je 0x460074
cmp dword [edx + 0x44], 1
jne 0x460074
mov eax, dword [edx + 0x10]
test eax, eax
je 0x460074
mov esi, dword [edx + 0xa4]
test esi, esi
je 0x45ff8d
mov ecx, dword [eax + 0xc]
cmp word [ecx], 2
je 0x45ff99
mov eax, dword [eax + 8]
test eax, eax
jne 0x45ff80
jmp 0x460074
mov eax, dword [0x5209ac]
push dword [ecx + 4]
mov dword [ebp - 0x120], ecx
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], 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 - 0x130], 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 0x4f
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x110], 0x6f
lea eax, [ebp - 0x110]
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.004092c0
mov edx, eax
mov dword [esi + 0x10], 0x6a
mov eax, dword [ebp - 0x110]
mov edi, edx
mov dword [esi], edx
mov ecx, 0x1a
mov dword [esi + 0x14], eax
add esp, 8
mov esi, str.D:UsersphiliDropboxDevelopmentSpotConnectcommoncspotcspot_bellmainplatformwin32MDNSService.cpp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [edx + 0x6a], 0
push dword [0x5209ac]
mov byte [ebp - 4], 1
call dword [ebp - 0x114]
mov edi, dword [ebp - 0x120]
push 0
push dword [edi + 4]
call fcn.0045a370
mov edx, dword [ebp - 0x124]
add esp, 0x48
mov dword [0x5209b4], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0x124], edx
test edx, edx
jne 0x45ff50
mov esi, dword [ebp - 0x11c]
push dword [edi + 4]
lea eax, [ebp - 0x90]
push eax
push dword [0x5209b4]
call fcn.0045a2e0
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x13c], ecx
xor edi, edi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x154], ecx
mov esi, dword [ebp + 0x20]
mov byte [ebp - 4], 4
mov esi, dword [esi]
cmp byte [esi + 0xd], al
jne 0x4604bc
nop word [eax + eax]
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
lea eax, [edi + 0x18]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x130], eax
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x4608f2
cmp dword [edi + 0x14], 0xf
jbe 0x46013d
mov edi, dword [edi]
inc ecx
mov dword [ebp - 0x98], 0
mov edx, 0xf
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x14c], ecx
xorps xmm0, xmm0
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x118], eax
movups xmmword [ebp - 0xa8], xmm0
cmp ecx, edx
jbe 0x4601c8
mov eax, ecx
or eax, edx
cmp eax, 0x7fffffff
jbe 0x460189
mov eax, bind
jmp 0x460194
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004092c0
mov edx, dword [ebp - 0x110]
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0xa8], eax
push dword [ebp - 0x114]
mov dword [ebp - 0x98], ecx
push edi
push eax
mov dword [ebp - 0x94], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x118]
add esp, 0xc
mov ecx, dword [ebp - 0x114]
mov word [eax + ecx], 0x3d
mov eax, dword [ebp - 0x10c]
or eax, 0x10
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x46021a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040d080
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x170], xmm0
movups xmmword [ebp - 0x108], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x134], 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.004d4281
mov edi, eax
add esp, 4
test edi, edi
je 0x460297
movups xmm0, xmmword [ebp - 0x170]
mov ecx, 0xf
mov byte [ebp - 0x108], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x134]
movq qword [edi + 0x10], xmm0
jmp 0x46029f
mov ecx, dword [ebp - 0xf4]
xor edi, edi
or dword [ebp - 0x10c], 0x60
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 8
cmp ecx, 0xf
jbe 0x4602e4
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4602da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460675
push ecx
push edx
call fcn.004d42b1
add esp, 8
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], 9
cmp ecx, 0xf
jbe 0x460322
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x460318
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460675
push ecx
push edx
call fcn.004d42b1
add esp, 8
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
cmp eax, dword [ebp - 0x124]
je 0x460362
mov dword [ebp - 0x114], 0
mov dword [eax], edi
add eax, 4
mov dword [ebp - 0x158], eax
jmp 0x460387
lea ecx, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.0045fbc0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x11c], eax
mov eax, dword [eax - 4]
cmp dword [eax + 0x14], 0xf
jbe 0x460398
mov eax, dword [eax]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
cmp ecx, dword [ebp - 0x128]
je 0x4603bf
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x140], ecx
jmp 0x4603ea
lea eax, [ebp - 0x130]
push eax
push ecx
lea ecx, [ebp - 0x144]
call fcn.0045fa60
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x120], eax
mov edi, dword [ebp - 0x114]
mov byte [ebp - 4], 4
test edi, edi
je 0x460447
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x46042b
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x460421
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460882
mov eax, edx
push ecx
push eax
call fcn.004d42b1
add esp, 8
push 0x18
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.004d42b1
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x460474
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x460470
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x460470
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x460460
mov esi, eax
jmp 0x46048c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x46048c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x460480
cmp byte [esi + 0xd], 0
je 0x460110
mov esi, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x118], ecx
jmp 0x4604be
xor esi, esi
mov dword [ebp - 0x130], 0
cmp eax, dword [ebp - 0x128]
je 0x4604e1
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x140], eax
jmp 0x46050c
lea ecx, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.0045fa60
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x144]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x110], esi
push 0x4e4fd8
push dword [ebp - 0x160]
lea eax, [ebp - 0xf0]
push eax
call fcn.0045f980
add esp, 0xc
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 0xa
cmp dword [edx + 0x14], 0xf
mov ecx, dword [edx + 0x10]
jbe 0x46053b
mov edx, dword [edx]
push ecx
push edx
mov ecx, eax
call fcn.0040d080
or dword [ebp - 0x10c], 0x80
xorps xmm0, xmm0
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xc8], 0
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
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 6
push str..local
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xb
call fcn.0040d080
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
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 dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0xc4]
mov byte [ebp - 4], 0xd
cmp ecx, 0xf
jbe 0x46062a
mov edx, dword [ebp - 0xd8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x460620
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460675
push ecx
push edx
call fcn.004d42b1
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, 0xf
jbe 0x460685
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46067b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46067b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004d42b1
add esp, 8
cmp dword [ebp - 0xac], 0xf
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x12c]
cmova eax, dword [ebp - 0xc0]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xf
cmp dword [ecx + 0x14], 0xf
mov byte [ebp - 0xf0], 0
jbe 0x4606c2
mov ecx, dword [ecx]
push esi
push 0
push dword [ebp + 0x1c]
push eax
push ecx
push dword [0x5209b4]
call fcn.0045a170
mov esi, eax
add esp, 0x18
test esi, esi
je 0x46072a
push 8
call fcn.004d4281
add esp, 4
mov dword [ebp - 0x150], eax
test eax, eax
je 0x460715
mov dword [eax], vtable.implMDNSService.0
mov dword [eax + 4], esi
lock inc dword [0x5209b8]
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x138]
mov edx, 0x309
jmp 0x460739
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x138]
xor eax, eax
mov edx, 0x309
jmp 0x460739
xor esi, esi
lea ecx, [ebp - 0x12c]
xor eax, eax
mov edx, 0x10e
mov dword [ecx], 0
mov ecx, dword [ebp - 0x148]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10c]
or eax, edx
test al, 4
je 0x460772
mov ecx, dword [ebp - 0x12c]
and eax, 0xfffffffb
mov dword [ebp - 0x10c], eax
test ecx, ecx
je 0x460772
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x10c]
test al, 2
je 0x460791
and eax, 0xfffffffd
mov dword [ebp - 0x10c], eax
test esi, esi
je 0x460791
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x10c]
test al, 1
je 0x4607a5
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x4607a5
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xac]
cmp ecx, 0xf
jbe 0x4607df
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4607d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460882
push ecx
push edx
call fcn.004d42b1
add esp, 8
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
test ecx, ecx
je 0x460853
mov esi, ecx
cmp esi, edi
je 0x460824
nop word [eax + eax]
mov ecx, esi
call fcn.004163f0
add esi, 4
cmp esi, edi
jne 0x460810
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x124]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x460849
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460882
push edx
push ecx
call fcn.004d42b1
add esp, 8
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x460892
mov edx, dword [ebp - 0x128]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x460888
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x460888
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004d42b1
add esp, 8
push 0x5209bc
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.00409590
push 0x40
push dword [ebp + 0x20]
call fcn.004d42b1
mov eax, dword [ebp - 0x148]
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.004d3ed5
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 [0x5209e8], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
call fcn.0040cef0
int3