Function at 0x10004770
Capabilities:
Check os version
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ace3d
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x244], eax
xor ebx, ebx
mov dword [ebp - 0x240], ebx
call fcn.10004620
push 0x11c
xor edi, edi
lea eax, [ebp - 0x238]
push edi
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x238]
add esp, 0xc
mov dword [ebp - 0x238], 0x11c
push eax
call esi
test eax, eax
jne 0x100047fa
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x114
push eax
call esi
cmp dword [ebp - 0x234], 6
mov eax, 1
cmovae edi, eax
mov dword [ebp - 0x258], edi
call fcn.100046d0
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0
push 0
push 0
mov dword [ebp - 0x254], ebx
call esi
cmp eax, 0x6f
je 0x10004858
push eax
push str.GetAdaptersAddresses_failed__0:__lu
push 0x74
push str.SystemUtility::Device::getCurrentNetworkInfo
call fcn.10095c20
add esp, 0x10
xor eax, eax
jmp 0x10004d84
mov eax, dword [ebp - 0x254]
cmp eax, 0xa00000
jbe 0x10004880
push str.GetAdaptersAddresses_excessive_buffer
push 0x78
push str.SystemUtility::Device::getCurrentNetworkInfo
call fcn.10095c20
add esp, 0xc
xor eax, eax
jmp 0x10004d84
push eax
call fcn.100ab8c2
add esp, 4
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x254]
mov edi, eax
mov dword [ebp - 0x248], edi
push ecx
push eax
push 0
push 0
push 0
call esi
test eax, eax
je 0x100048d1
push eax
push str.GetAdaptersAddresses_failed__1:__lu
push 0x81
push str.SystemUtility::Device::getCurrentNetworkInfo
call fcn.10095c20
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 0x14
xor eax, eax
jmp 0x10004d84
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x10004d75
mov eax, dword [ebp - 0x250]
cmp dword [edi + 4], eax
jne 0x10004d5e
mov esi, dword [ebp - 0x244]
lea ecx, [ebp - 0x88]
mov dword [esi], eax
mov eax, dword [edi + 0x38]
shr eax, 7
and eax, 1
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x38]
shr eax, 8
and eax, 1
mov dword [esi + 0x18], eax
push dword [edi + 0xc]
call fcn.100035b0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1009b180
mov edi, eax
add esi, 0x1c
add esp, 8
cmp esi, edi
je 0x1000496b
cmp dword [esi + 0x14], 8
jb 0x10004950
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.10004f90
cmp dword [ebp - 0x5c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1000497f
push dword [ebp - 0x70]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x74], 0x10
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x100049ab
push dword [ebp - 0x88]
call esi
add esp, 4
mov edi, dword [ebp - 0x248]
mov edx, dword [edi + 0x28]
cmp word [edx], 0
jne 0x100049be
xor ecx, ecx
jmp 0x100049d2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100049c3
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x244]
push edx
add ecx, 0x34
call fcn.10005210
mov edx, dword [edi + 0x24]
cmp word [edx], 0
jne 0x100049ef
xor ecx, ecx
jmp 0x10004a03
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100049f4
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x244]
push edx
lea ecx, [ecx + 0x4c]
call fcn.10005210
mov edi, dword [edi + 0x10]
test edi, edi
je 0x10004d52
mov edi, edi
mov esi, dword [edi + 0xc]
movzx eax, word [esi]
cmp eax, 2
jne 0x10004afe
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp byte [edx], 0
jne 0x10004a55
xor eax, eax
jmp 0x10004a69
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004a60
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x70]
call fcn.10003740
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1009b180
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
movzx eax, byte [0x100eb743]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ecx + 4]
call fcn.10005620
cmp dword [ebp - 0x74], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10004ac9
push dword [ebp - 0x88]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x10004d47
push dword [ebp - 0x70]
call esi
add esp, 4
jmp 0x10004d47
cmp dword [ebp - 0x258], 0
je 0x10004d47
cmp eax, 0x17
jne 0x10004d47
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.inet_ntop
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x10004d47
push 0x41
lea eax, [ebp - 0x58]
push eax
lea eax, [esi + 8]
push eax
push 0x17
call ecx
push str.fe80:
lea ecx, [ebp - 0xd0]
call fcn.100035b0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 3
or ebx, 1
lea ecx, [ebp - 0xb8]
push eax
mov dword [ebp - 0x240], ebx
call fcn.100035b0
lea eax, [ebp - 0xd0]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xb8]
or ebx, 2
push eax
mov dword [ebp - 0x240], ebx
call fcn.1009b320
add esp, 8
test al, al
jne 0x10004c53
push str.fc00:
lea ecx, [ebp - 0xe8]
call fcn.100035b0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
or ebx, 4
lea ecx, [ebp - 0xa0]
push eax
mov dword [ebp - 0x240], ebx
call fcn.100035b0
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0xa0]
or ebx, 8
push eax
mov dword [ebp - 0x240], ebx
call fcn.1009b320
add esp, 8
test al, al
jne 0x10004c53
push str.fd00:
lea ecx, [ebp - 0x70]
call fcn.100035b0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 7
or ebx, 0x10
lea ecx, [ebp - 0x88]
push eax
mov dword [ebp - 0x240], ebx
call fcn.100035b0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x88]
or ebx, 0x20
push eax
mov dword [ebp - 0x240], ebx
call fcn.1009b320
add esp, 8
mov byte [ebp - 0x239], 0
test al, al
je 0x10004c5a
mov byte [ebp - 0x239], 1
test bl, 0x20
je 0x10004c6d
lea ecx, [ebp - 0x88]
and ebx, 0xffffffdf
call fcn.10003610
test bl, 0x10
je 0x10004c7d
lea ecx, [ebp - 0x70]
and ebx, 0xffffffef
call fcn.10003610
test bl, 8
je 0x10004c90
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffff7
call fcn.10003610
test bl, 4
je 0x10004ca3
lea ecx, [ebp - 0xe8]
and ebx, 0xfffffffb
call fcn.10003610
test bl, 2
je 0x10004cb6
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffd
call fcn.10003610
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10004cd0
lea ecx, [ebp - 0xd0]
and ebx, 0xfffffffe
call fcn.10003610
cmp byte [ebp - 0x239], 0
jne 0x10004d47
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x100]
call fcn.100035b0
lea eax, [ebp - 0x100]
mov dword [ebp - 4], 9
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1009b180
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0xa
movzx eax, byte [0x100eb743]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ecx + 0x10]
call fcn.10005620
lea ecx, [ebp - 0x118]
call fcn.10004eb0
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.10003610
mov edi, dword [edi + 8]
test edi, edi
jne 0x10004a20
mov eax, dword [ebp - 0x250]
mov edi, dword [ebp - 0x248]
mov edi, dword [edi + 8]
mov dword [ebp - 0x248], edi
test edi, edi
jne 0x100048e5
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret