Function at 0x140166f80
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov rax, qword [0x14031e740]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d70
cmp eax, 1
jne 0x140166ffa
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d50
mov rcx, rax
call fcn.14013a740
movzx edx, al
mov ecx, dword [rsp + 0x1e0]
call fcn.140167570
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d50
mov rcx, rax
call fcn.14015b940
mov rcx, rax
call fcn.140167d60
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rcx, qword [rsp + 0x1d0]
call fcn.140139020
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x160]
call fcn.14015b2e0
lea rcx, [rsp + 0x160]
call fcn.140136c70
nop
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x78], rax
xor edx, edx
mov rax, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x78]
div rcx
mov ecx, dword [rsp + 0x48]
imul rax, rcx
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x128]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x120], rax
cmp qword [rsp + 0x120], 0
je 0x140167476
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x1d8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1d8]
mov rdx, qword [rsp + 0x128]
sub rdx, rcx
mov rcx, rdx
cmp rax, rcx
jae 0x1401672cc
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x120], rax
jb 0x1401672cc
cmp qword [rsp + 0x120], 0
je 0x1401672cc
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d50
mov rcx, rax
call fcn.14015b940
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x170]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x90]
test eax, eax
je 0x14016719b
jmp 0x140167476
cmp dword [rsp + 0x190], 0x10000
jne 0x1401672ac
mov rax, qword [rsp + 0x1d0]
cmp qword [rsp + 0x188], rax
jb 0x1401672ac
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d50
mov rcx, rax
call fcn.14015b940
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9d, 0x3000
mov r8, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x98]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1401672aa
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x1e8]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1d0]
mov r8, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x1c8]
lea rcx, [rsp + 0xf0]
call fcn.1401668e0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x160]
call fcn.1401380d0
nop
lea rcx, [rsp + 0xf0]
call fcn.140137cb0
nop
jmp 0x140167476
jmp 0x1401672c7
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x178]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x120], rax
jmp 0x140167471
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0x128], rax
jae 0x14016746f
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d50
mov rcx, rax
call fcn.14015b940
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xb8], rax
lea r8, [rsp + 0x170]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0xc0]
test eax, eax
je 0x140167345
jmp 0x140167476
cmp dword [rsp + 0x190], 0x10000
jne 0x14016744f
mov rax, qword [rsp + 0x1d0]
cmp qword [rsp + 0x188], rax
jb 0x14016744f
mov rcx, qword [rsp + 0x1c8]
call fcn.140167d50
mov rcx, rax
call fcn.14015b940
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9d, 0x3000
mov r8, qword [rsp + 0x1d0]
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x70]
call qword [rsp + reloc.WLDAP32.dll_Ordinal_200]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14016744d
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x1e8]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1d0]
mov r8, qword [rsp + 0x128]
mov rdx, qword [rsp + 0x1c8]
lea rcx, [rsp + 0x100]
call fcn.1401668e0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x160]
call fcn.1401380d0
nop
lea rcx, [rsp + 0x100]
call fcn.140137cb0
nop
jmp 0x140167476
jmp 0x14016746d
mov rax, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x128], rax
jmp 0x140167471
jmp 0x140167476
jmp 0x1401670cf
lea rcx, [rsp + 0x160]
call fcn.140146170
movzx eax, al
test eax, eax
jne 0x1401674e8
movzx eax, byte [rsp + 0x1e8]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1d8]
mov r8, qword [rsp + 0x1d0]
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140166ce0
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x160]
call fcn.140137cb0
mov rax, qword [rsp + 0x1c0]
jmp 0x14016754e
lea rax, [rsp + 0x110]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0xe0]
call fcn.140153c10
mov qword [rsp + 0xe8], rax
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140166860
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x160]
call fcn.140137cb0
nop
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1402143d0
add rsp, 0x1b8
ret