Function at 0x14004d520
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 - 0xf]
sub rsp, 0xf8
mov rax, qword [0x140200100]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov ecx, 0x40
mov r14d, ecx
cmp dword [rdx + 0x78], 1
jne 0x14004d578
mov rax, qword [rdx + 0x70]
mov r14d, 4
cmp byte [rax + 0x18], 1
cmove r14d, ecx
mov rax, qword [rdx + 0x70]
mov rcx, qword [rax + 0x10]
mov ebx, dword [rcx + 0x18]
xor edx, edx
mov rax, rdi
div rbx
mov r13d, ebx
sub r13, rdx
add r13, rdi
test rdx, rdx
cmove r13, rdi
lea rcx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r10, qword [rbp - 0x71]
mov qword [rsp + 0x40], r10
mov r8, qword [rbp - 0x69]
mov qword [rsp + 0x58], r8
xor edx, edx
mov rax, r12
div rbx
mov r9, r12
sub r9, rdx
mov qword [rsp + 0x68], r9
mov rdx, r9
sub rdx, r13
mov qword [rsp + 0x60], rdx
je 0x14004d787
nop dword [rax]
nop word [rax + rax]
mov rcx, r9
sub rcx, r12
mov rax, r12
sub rax, rdx
cmp rax, rcx
jae 0x14004d679
cmp rdx, r10
jb 0x14004d679
test rdx, rdx
je 0x14004d679
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x14004d787
cmp dword [rbp - 0x19], 0x10000
jne 0x14004d666
cmp qword [rbp - 0x21], rdi
jb 0x14004d666
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
mov r9d, 0x3000
mov r8, rdi
lea rdx, [rsp + 0x60]
call qword [rax]
test eax, eax
jns 0x14004d705
mov r9, qword [rsp + 0x68]
jmp 0x14004d6e8
mov rdx, qword [rbp - 0x31]
sub rdx, r13
mov qword [rsp + 0x60], rdx
mov r9, qword [rsp + 0x68]
jmp 0x14004d6ed
cmp r9, r8
jae 0x14004d787
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp - 0x39]
mov rdx, r9
call qword [rax + Ordinal_50]
test eax, eax
jne 0x14004d787
mov rcx, qword [rbp - 0x21]
cmp dword [rbp - 0x19], 0x10000
jne 0x14004d6dc
cmp rcx, rdi
jb 0x14004d6dc
mov rax, qword [rsi + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
mov r9d, 0x3000
mov r8, rdi
lea rdx, [rsp + 0x68]
call qword [rax]
test eax, eax
jns 0x14004d70c
mov r9, qword [rsp + 0x68]
jmp 0x14004d6e8
mov r9, qword [rbp - 0x39]
add r9, rcx
mov qword [rsp + 0x68], r9
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14004d787
mov r8, qword [rsp + 0x58]
mov r10, qword [rsp + 0x40]
jmp 0x14004d5f0
mov r8, qword [rsp + 0x60]
jmp 0x14004d711
mov r8, qword [rsp + 0x68]
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x28], 1
mov r9, rdi
mov dword [rsp + 0x20], 0x40
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14004d170
mov rbx, qword [rax]
xor r13d, r13d
test rbx, rbx
je 0x14004d753
mov qword [rbp - 0x49], rbx
mov qword [rax], r13
mov r14, qword [rax + 8]
mov qword [rbp - 0x41], r14
mov qword [rax + 8], r13
jmp 0x14004d75b
mov r14, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x49]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004d76a
call fcn.140002a00
test rbx, rbx
je 0x14004d78b
cmp qword [rbx], 0
je 0x14004d78b
mov dword [r15], r13d
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], r14
mov byte [r15 + 0x18], 1
jmp 0x14004d7b7
mov r14, qword [rbp - 0x41]
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x40
mov r9, r12
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call fcn.14004d3b0
nop
test r14, r14
je 0x14004d7b7
mov rcx, r14
call fcn.140002a00
mov rax, r15
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140115b30
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret