Function at 0x59513f0
Capabilities:
Get local ipv4 addresses
Get memory capacity
Get socket information
Get system information on windows

Disassembly:
sub esp, 0x408
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
lea eax, [esp + 0x7c]
mov edi, 0x9c
push eax
mov byte [esp + 0x7c], 0x66
mov byte [esp + 0x17c], 0
mov dword [esp + 0x80], edi
call esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], edi
push ecx
call esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.059513a0
add esp, 0xc
test eax, eax
je 0x5951466
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x16c], edx
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ecx
call fcn.05951350
mov ecx, dword [esp + 0x418]
push 0x100
test eax, eax
lea eax, [esp + 0x218]
setne dl
push eax
push ecx
mov byte [esp + 0x1cc], dl
call fcn.05951220
mov ebp, dword [esp + 0x428]
xor edx, edx
mov dword [esp + 0x30], edx
add esp, 0xc
mov dword [esp + 0x28], edx
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0x48]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x28]
mov ecx, 0xc
lea esi, [esp + 0x214]
lea edi, [esp + 0x138]
mov dword [esp + 0x134], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.059510a0
lea ecx, [esp + 0x54]
mov dword [esp + 0x118], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x11c]
push edx
push 0x5968194
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x3c]
shr edx, 0x14
mov dword [esp + 0x130], edx
call fcn.05951200
mov byte [esp + 0x178], al
mov eax, dword [esp + 0x420]
mov dword [esp + 0x17c], eax
call fcn.05950f60
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.v2019
test ecx, ecx
mov edi, ecx
jne 0x595159a
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x100
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x10], 0x44
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [esp + 0x11], 0x65
and ecx, 3
mov byte [esp + 0x12], 0x66
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x318]
mov byte [esp + 0x13], 0x61
push ecx
mov byte [esp + 0x18], 0x75
mov byte [esp + 0x19], 0x6c
mov byte [esp + 0x1a], 0x74
mov byte [esp + 0x1b], 0
call fcn.059512b0
add esp, 8
test eax, eax
jne 0x595160b
mov edx, str.Default
test edx, edx
je 0x5951605
mov edi, edx
jmp 0x5951612
lea edi, [esp + 0xc]
jmp 0x5951612
lea edi, [esp + 0x314]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x180]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x19c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebp
call fcn.05942190
pop edi
pop esi
pop ebp
add esp, 0x408
ret