Function at 0x140195430
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x18]
mov eax, dword [rcx + 0x38]
test eax, eax
jne 0x14019549e
mov edx, 5
lea rcx, [rbp - 0x40]
call fcn.140164c60
nop
mov r8, rax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rsi
call fcn.1401895e0
nop
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401955c7
cmp ecx, 0xffffffff
je 0x1401956dd
mov ebx, 0xffffffff
jmp 0x1401955b6
test rbx, rbx
jne 0x1401954ca
test r8, r8
jne 0x1401954ca
mov edx, 0x57
lea rcx, [rbp - 0x40]
call fcn.140164c60
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call fcn.1401895e0
nop
jmp 0x14019547d
xor r15d, r15d
mov r12d, 4
test r9b, 1
je 0x1401954e1
mov r14d, 1
jmp 0x1401954f6
test al, 2
je 0x1401954ed
mov r14d, 2
jmp 0x1401954f6
test al, 1
mov r14d, r15d
cmovne r14d, r12d
cmp qword [rcx + 0x88], r15
jne 0x1401955e0
mov rax, qword [rcx + 0x80]
cmp rax, 0xffffffffffffffff
jne 0x140195550
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14019552b
call fcn.140243fb4
mov ecx, eax
call fcn.140243e3c
cmp rax, 0xffffffffffffffff
jne 0x140195550
mov edx, 5
lea rcx, [rbp - 0x40]
call fcn.140164c60
nop
mov r8, rax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rsi
call fcn.1401895e0
nop
jmp 0x14019547d
test byte [rdi + 0x38], 2
mov r8d, 2
cmovne r8d, r12d
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x88], rax
test rax, rax
jne 0x1401955e0
mov ebx, 0xffffffff
mov edx, ebx
lea rcx, [rbp - 0x40]
call fcn.140164c60
nop
mov r8, rax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rsi
call fcn.1401895e0
nop
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401955c7
cmp ecx, ebx
je 0x1401956dd
mov rax, qword [rbp - 0x40]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1401956dd
mov r8d, 8
mov edx, 2
mov rcx, qword [rbp - 0x40]
call fcn.1400affb0
jmp 0x1401956dd
mov r12, rbx
sar r12, 0x20
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x10]
dec eax
mov r15d, ebx
and r15d, eax
je 0x140195602
not eax
and ebx, eax
mov r13d, r15d
mov rax, qword [rbp + 0x50]
add rax, r13
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, r12d
mov edx, r14d
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14019564f
lea rbx, [rax + r15]
mov qword [rbp + 0x40], rbx
lea rcx, [rdi + 0x90]
lea rdx, [rbp + 0x40]
call fcn.1401942a0
mov dword [rax], r15d
mov rax, rbx
jmp 0x1401956df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffffffff
lea rcx, [rbp - 0x40]
mov edx, ebx
cmp eax, 5
je 0x14019567e
call fcn.140164c60
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call fcn.1401895e0
nop
jmp 0x140195695
call fcn.140164c60
nop
mov r8, rax
mov edx, reloc.WS2_32.dll_listen
mov rcx, rsi
call fcn.1401895e0
nop
mov rax, qword [rbp - 0x40]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401956b1
cmp ecx, 0xffffffff
je 0x1401956c5
mov rax, qword [rbp - 0x40]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1401956c5
mov r8d, 8
mov edx, 2
mov rcx, qword [rbp - 0x40]
call fcn.1400affb0
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x88], 0
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret