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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x62aabc]
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
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 4], eax
mov eax, 0x62da54
push eax
mov dword [ebp - 0x150], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x4790de
mov eax, dword [0x62da80]
cmp eax, 0x7fffffff
je 0x4790e5
cmp dword [0x62da4c], 0
jne 0x4788c5
push 0x80
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5e00
xor edi, edi
mov dword [ebp - 0x124], 0x5e00
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x124]
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 - 0x110], esi
mov edx, esi
test esi, esi
je 0x4788a6
nop word [eax + eax]
test edi, edi
jne 0x4788a0
cmp dword [edx + 0xd8], 0xe
je 0x47888f
cmp dword [edx + 0x44], 1
jne 0x47888f
mov eax, dword [edx + 0x10]
test eax, eax
je 0x47888f
mov esi, dword [edx + 0xa4]
test esi, esi
je 0x4787bd
mov ecx, dword [eax + 0xc]
cmp word [ecx], 2
je 0x4787c9
mov eax, dword [eax + 8]
test eax, eax
jne 0x4787b0
jmp 0x47888f
mov eax, dword [0x62da44]
push dword [ecx + 4]
mov dword [ebp - 0x118], 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 0x4e
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.00410930
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 [0x62da44]
mov byte [ebp - 4], 1
call dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
push 0
push dword [edi + 4]
call fcn.00491e60
mov edx, dword [ebp - 0x110]
add esp, 0x48
mov dword [0x62da4c], eax
mov edx, dword [edx + 8]
mov dword [ebp - 0x110], edx
test edx, edx
jne 0x478780
mov esi, dword [ebp - 0x11c]
push dword [edi + 4]
lea eax, [ebp - 0x90]
push eax
push dword [0x62da4c]
call fcn.00491dd0
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 - 0x11c], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x13c], ecx
xor edi, edi
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x128], 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 0x478cbc
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x10]
lea eax, [ecx + 0x18]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x130], eax
mov eax, closesocket
sub eax, edx
mov dword [ebp - 0x14c], edx
cmp eax, 1
jb 0x4790f2
cmp dword [ecx + 0x14], 0x10
jb 0x47895e
mov ecx, dword [ecx]
mov dword [ebp - 0x110], ecx
inc edx
mov dword [ebp - 0x98], 0
mov edi, 0xf
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x118], edx
xorps xmm0, xmm0
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x114], eax
movups xmmword [ebp - 0xa8], xmm0
cmp edx, edi
jbe 0x4789de
mov edi, edx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4789ac
mov edi, closesocket
jmp 0x4789b7
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00410930
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x14c]
push edi
push ecx
push eax
mov dword [ebp - 0x98], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x114]
add esp, 0xc
or dword [ebp - 0x10c], 0x10
mov word [eax + edi], 0x3d
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x478a23
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.00410c10
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x174], 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.0054f9cc
mov edi, eax
add esp, 4
test edi, edi
je 0x478aa0
movups xmm0, xmmword [ebp - 0x174]
mov ecx, 0xf
mov byte [ebp - 0x108], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x134]
movq qword [edi + 0x10], xmm0
jmp 0x478aa8
mov ecx, dword [ebp - 0xf4]
xor edi, edi
or dword [ebp - 0x10c], 0x60
mov dword [ebp - 0x118], edi
mov byte [ebp - 4], 8
cmp ecx, 0x10
jb 0x478aed
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x478ae3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478e75
push ecx
push edx
call fcn.0054f9fc
add esp, 8
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], 9
cmp ecx, 0x10
jb 0x478b2b
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x478b21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478e75
push ecx
push edx
call fcn.0054f9fc
add esp, 8
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
cmp eax, dword [ebp - 0x124]
je 0x478b6b
mov dword [ebp - 0x118], 0
mov dword [eax], edi
add eax, 4
mov dword [ebp - 0x158], eax
jmp 0x478b90
lea ecx, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.004783f0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x128], eax
mov eax, dword [eax - 4]
cmp dword [eax + 0x14], 0x10
jb 0x478ba1
mov eax, dword [eax]
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x130], eax
cmp ecx, dword [ebp - 0x120]
je 0x478bc8
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x140], ecx
jmp 0x478bf3
lea eax, [ebp - 0x130]
push eax
push ecx
lea ecx, [ebp - 0x144]
call fcn.00478290
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x11c], eax
mov edi, dword [ebp - 0x118]
mov byte [ebp - 4], 4
test edi, edi
je 0x478c50
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x478c34
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x478c2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479082
mov eax, edx
push ecx
push eax
call fcn.0054f9fc
add esp, 8
push 0x18
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
call fcn.0054f9fc
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x478c76
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x478c72
cmp esi, dword [eax + 8]
jne 0x478c72
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x478c62
mov esi, eax
jmp 0x478c8c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x478c8c
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x478c80
cmp byte [esi + 0xd], 0
je 0x478925
mov esi, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x128]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], ecx
jmp 0x478cbe
xor esi, esi
mov dword [ebp - 0x130], 0
cmp eax, dword [ebp - 0x120]
je 0x478ce1
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x140], eax
jmp 0x478d0c
lea ecx, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00478290
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x144]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x110], esi
push 0x559958
push dword [ebp - 0x160]
lea eax, [ebp - 0xf0]
push eax
call fcn.004781b0
add esp, 0xc
mov edx, dword [ebp - 0x138]
mov byte [ebp - 4], 0xa
cmp dword [edx + 0x14], 0x10
mov ecx, dword [edx + 0x10]
jb 0x478d3b
mov edx, dword [edx]
push ecx
push edx
mov ecx, eax
call fcn.00410c10
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.00410c10
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, 0x10
jb 0x478e2a
mov edx, dword [ebp - 0xd8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x478e20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478e75
push ecx
push edx
call fcn.0054f9fc
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 0x478e85
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x478e7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x478e7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0054f9fc
add esp, 8
cmp dword [ebp - 0xac], 0x10
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x12c]
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 0x478ec2
mov ecx, dword [ecx]
push esi
push 0
push dword [ebp + 0x1c]
push eax
push ecx
push dword [0x62da4c]
call fcn.00491c60
mov esi, eax
add esp, 0x18
test esi, esi
je 0x478f2a
push 8
call fcn.0054f9cc
add esp, 4
mov dword [ebp - 0x150], eax
test eax, eax
je 0x478f15
mov dword [eax], vtable.implMDNSService.0
mov dword [eax + 4], esi
lock inc dword [0x62da50]
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x138]
mov edx, 0x309
jmp 0x478f39
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x138]
xor eax, eax
mov edx, 0x309
jmp 0x478f39
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 0x478f72
mov ecx, dword [ebp - 0x12c]
and eax, 0xfffffffb
mov dword [ebp - 0x10c], eax
test ecx, ecx
je 0x478f72
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x10c]
test al, 2
je 0x478f91
and eax, 0xfffffffd
mov dword [ebp - 0x10c], eax
test esi, esi
je 0x478f91
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0x10c]
test al, 1
je 0x478fa5
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x478fa5
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xac]
cmp ecx, 0x10
jb 0x478fdf
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x478fd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479082
push ecx
push edx
call fcn.0054f9fc
add esp, 8
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
test ecx, ecx
je 0x479053
mov esi, ecx
cmp esi, edi
je 0x479024
nop word [eax + eax]
mov ecx, esi
call fcn.00428c20
add esi, 4
cmp esi, edi
jne 0x479010
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x124]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x479049
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479082
push edx
push ecx
call fcn.0054f9fc
add esp, 8
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x479092
mov edx, dword [ebp - 0x120]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x479088
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x479088
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0054f9fc
add esp, 8
push 0x62da54
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.004078a0
push 0x40
push dword [ebp + 0x20]
call fcn.0054f9fc
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.0054f742
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 [0x62da80], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
call fcn.00410900
int3