Function at 0x180058d40
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x1801c1040]
xor rax, rsp
mov qword [rbp], rax
mov r15, r9
mov rdi, r8
mov r13, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
xor r12d, r12d
mov rsi, qword [rcx + 0x10]
mov r14, qword [rcx + 0x18]
mov rbx, qword [rbp + 0x80]
cmp rsi, r14
je 0x180058e71
nop word [rax + rax]
mov r10, qword [rsi]
cmp qword [r10 + 8], r15
jb 0x180058e64
mov r10, qword [r10 + 0x10]
test r10, r10
je 0x180058e64
nop word [rax + rax]
mov r9, qword [r10 + 8]
mov rax, qword [r10 + 0x10]
sub rax, r9
cmp rax, r15
jb 0x180058e58
mov qword [rbp - 8], rbx
mov qword [rbp - 0x50], r9
mov r11, qword [rdi + 8]
mov rax, qword [rdi]
cmp rax, r11
je 0x180058e14
nop dword [rax + rax]
mov r8, qword [rax]
mov rdx, r8
sub rdx, r9
mov rcx, r9
sub rcx, r8
cmp r9, r8
cmovbe rcx, rdx
cmp rcx, rbx
ja 0x180058e58
add rax, 8
cmp rax, r11
jne 0x180058df0
lea rax, [r15 + r9]
mov qword [r10 + 8], rax
mov r8, qword [rsp + 0x20]
mov rdx, qword [r8 + 8]
test rdx, rdx
je 0x180059149
mov eax, dword [rdx + 8]
test eax, eax
je 0x180059149
nop dword [rax]
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x180058f00
test eax, eax
je 0x180059149
jmp 0x180058e40
mov r10, qword [r10]
test r10, r10
jne 0x180058dc0
add rsi, 8
cmp rsi, r14
jne 0x180058da0
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x44]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 0x64], eax
mov rax, qword [rbp - 0x68]
shr rax, 0x20
lea rsi, [rax - 1]
add rsi, r15
dec rax
not rax
and rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov r9, rbx
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.180059150
cmp byte [rbp - 0x10], r12b
jne 0x180058fdb
movzx ecx, byte [rbp - 0x18]
mov byte [r13], cl
mov byte [r13 + 0x20], r12b
mov rax, r13
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180084bc0
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [r8]
mov qword [rsp + 0x78], rcx
mov rax, qword [r8 + 8]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1800584f0
mov byte [r13 + 0x20], 1
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180058f96
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x180058f96
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x180058f96
call fcn.180058ba0
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r12
test rbx, rbx
je 0x180058f9b
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180058f96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180058f96
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov r12, qword [rsp + 0x38]
test r12, r12
je 0x180059144
mov eax, edi
lock xadd dword [r12 + 8], eax
cmp eax, 1
jne 0x180059144
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180059144
mov rcx, qword [rsp + 0x38]
jmp 0x18005913d
mov ecx, 0x18
call fcn.180084be8
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x20]
add rcx, 0x10
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x180059019
mov qword [rdx], rax
mov rbx, qword [rcx + 8]
lea rax, [rbx + 8]
mov qword [rcx + 8], rax
jmp 0x180059026
lea r8, [rsp + 0x28]
call fcn.18005b130
mov rbx, rax
mov rcx, qword [rbx]
mov r14, qword [rbp - 0x18]
mov qword [rcx], r14
mov rcx, qword [rbx]
mov qword [rcx + 8], rsi
mov ecx, 0x18
call fcn.180084be8
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov r8, qword [rbx]
mov rdi, qword [r8 + 0x10]
mov qword [r8 + 0x10], rax
test rdi, rdi
je 0x180059071
mov rcx, rdi
call fcn.18005afb0
mov edx, 0x18
mov rcx, rdi
call fcn.180084be0
lea rdx, [r15 + r14]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x10]
mov qword [rcx + 8], rdx
lea rdx, [r14 + rsi]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
mov r8, qword [rsp + 0x20]
mov rdx, qword [r8 + 8]
test rdx, rdx
je 0x180059149
mov eax, dword [rdx + 8]
test eax, eax
je 0x180059149
nop dword [rax]
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x1800590c3
test eax, eax
jne 0x1800590b0
jmp 0x180059149
mov rcx, qword [r8]
mov qword [rbp - 0x78], rcx
mov rax, qword [r8 + 8]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r15
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.1800584f0
mov byte [r13 + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.180058660
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180059144
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180059144
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180059144
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x180058edd
call fcn.180058420
int3