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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aea8d
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.10004fd0
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 0x100051aa
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.10005080
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 0x10005208
push eax
push str.GetAdaptersAddresses_failed__0:__lu
push 0x7f
push str.SystemUtility::Device::getCurrentNetworkInfo
call fcn.100989a0
add esp, 0x10
xor eax, eax
jmp 0x10005744
mov eax, dword [ebp - 0x254]
cmp eax, 0xa00000
jbe 0x10005233
push str.GetAdaptersAddresses_excessive_buffer
push 0x83
push str.SystemUtility::Device::getCurrentNetworkInfo
call fcn.100989a0
add esp, 0xc
xor eax, eax
jmp 0x10005744
push eax
call fcn.100ad5d6
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 0x10005284
push eax
push str.GetAdaptersAddresses_failed__1:__lu
push 0x8c
push str.SystemUtility::Device::getCurrentNetworkInfo
call fcn.100989a0
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 0x14
xor eax, eax
jmp 0x10005744
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x10005735
mov eax, dword [ebp - 0x250]
jmp 0x100052a0
cmp dword [edi + 4], eax
jne 0x1000571e
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.10003df0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1009dfe0
mov edi, eax
add esi, 0x1c
add esp, 8
cmp esi, edi
je 0x10005326
cmp dword [esi + 0x14], 8
jb 0x1000530b
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.10005a10
cmp dword [ebp - 0x5c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1000533a
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 0x10005366
push dword [ebp - 0x88]
call esi
add esp, 4
mov edi, dword [ebp - 0x248]
mov edx, dword [edi + 0x28]
cmp word [edx], 0
jne 0x10005379
xor ecx, ecx
jmp 0x1000538f
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005380
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x244]
push edx
add ecx, 0x34
call fcn.10005c80
mov edx, dword [edi + 0x24]
cmp word [edx], 0
jne 0x100053ac
xor ecx, ecx
jmp 0x100053c0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053b1
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x244]
push edx
lea ecx, [ecx + 0x4c]
call fcn.10005c80
mov edi, dword [edi + 0x10]
test edi, edi
je 0x10005712
jmp 0x100053e0
mov esi, dword [edi + 0xc]
movzx eax, word [esi]
cmp eax, 2
jne 0x100054be
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 0x10005415
xor eax, eax
jmp 0x10005429
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005420
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x70]
call fcn.10003fc0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1009dfe0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 2
movzx eax, byte [0x100ef135]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x268]
push eax
lea ecx, [ecx + 4]
call fcn.10006090
cmp dword [ebp - 0x74], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10005489
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 0x10005707
push dword [ebp - 0x70]
call esi
add esp, 4
jmp 0x10005707
cmp dword [ebp - 0x258], 0
je 0x10005707
cmp eax, 0x17
jne 0x10005707
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 0x10005707
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.10003df0
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.10003df0
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.1009e180
add esp, 8
test al, al
jne 0x10005613
push str.fc00:
lea ecx, [ebp - 0xe8]
call fcn.10003df0
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.10003df0
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.1009e180
add esp, 8
test al, al
jne 0x10005613
push str.fd00:
lea ecx, [ebp - 0x70]
call fcn.10003df0
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.10003df0
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.1009e180
add esp, 8
mov byte [ebp - 0x239], 0
test al, al
je 0x1000561a
mov byte [ebp - 0x239], 1
test bl, 0x20
je 0x1000562d
lea ecx, [ebp - 0x88]
and ebx, 0xffffffdf
call fcn.10003e50
test bl, 0x10
je 0x1000563d
lea ecx, [ebp - 0x70]
and ebx, 0xffffffef
call fcn.10003e50
test bl, 8
je 0x10005650
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffff7
call fcn.10003e50
test bl, 4
je 0x10005663
lea ecx, [ebp - 0xe8]
and ebx, 0xfffffffb
call fcn.10003e50
test bl, 2
je 0x10005676
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffd
call fcn.10003e50
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10005690
lea ecx, [ebp - 0xd0]
and ebx, 0xfffffffe
call fcn.10003e50
cmp byte [ebp - 0x239], 0
jne 0x10005707
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x100]
call fcn.10003df0
lea eax, [ebp - 0x100]
mov dword [ebp - 4], 9
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1009dfe0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0xa
movzx eax, byte [0x100ef135]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ecx + 0x10]
call fcn.10006090
lea ecx, [ebp - 0x118]
call fcn.10005870
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.10003e50
mov edi, dword [edi + 8]
test edi, edi
jne 0x100053e0
mov eax, dword [ebp - 0x250]
mov edi, dword [ebp - 0x248]
mov edi, dword [edi + 8]
mov dword [ebp - 0x248], edi
test edi, edi
jne 0x100052a0
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.100ad688
mov esp, ebp
pop ebp
ret