Function at 0x14000781c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x820
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rsp + 0x810], rax
mov r14, rdx
mov edi, ecx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov ebx, pe_nt_image_headers64
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x610]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov edx, ebx
lea rcx, [rsp + 0x610]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
lea rax, [rsp + 0x610]
mov qword [0x1401fac48], rax
lea r13d, [r12 + 1]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, str..ACP
lea ecx, [r12 + 2]
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1401fac80], eax
call fcn.140007e94
mov edx, r13d
lea rcx, [0x14011fa1c]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [fcn.140023310]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov esi, r12d
mov qword [rsp + 0x68], r12
mov ebx, r13d
mov edx, 0xffdf
lea r8d, [rdx + 0x1e]
mov dword [rsp + 0x50], ebx
cmp ebx, edi
jge 0x14000793f
movsxd rax, ebx
lea r15, [r14 + rax*8]
mov rcx, qword [r15]
movzx eax, word [rcx]
sub ax, 0x2d
test r8w, ax
je 0x14000792c
add ebx, r13d
jmp 0x140007908
movzx eax, word [rcx + 2]
sub ax, 0x44
test dx, ax
je 0x140007a4c
jmp 0x140007927
lea rdx, str.LINK_DB
mov rcx, rsi
call fcn.140007d80
call fcn.140007c04
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1401fb6a8]
test eax, eax
cmove eax, dword [rsp + 0x74]
mov dword [0x1401fb6a8], eax
movabs rax, 0x200000000
mov qword [0x1401fab98], rax
cmp edi, 2
jl 0x1400079d8
mov rax, qword [r14 + 8]
movzx ecx, word [rax]
sub cx, 0x2d
mov eax, 0xfffd
test ax, cx
jne 0x1400079d8
mov rbx, r12
lea rsi, str.Linker
mov qword [rsp + 0x60], rbx
lea r15, [rbx + rbx*4]
mov rdx, qword [rsi + r15*8]
test rdx, rdx
je 0x1400079df
movsxd r8, dword [rsi + r15*8 + 0x18]
mov rcx, qword [r14 + 8]
add rcx, 2
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
je 0x140007ab9
add rbx, r13
jmp 0x1400079a6
lea rsi, str.Linker
test byte [0x1401fca80], 2
jne 0x140007b1b
mov rbx, r12
mov qword [rsp + 0x60], rbx
lea rbx, [rbx + rbx*4]
mov eax, dword [rsi + rbx*8 + 0x1c]
mov dword [0x1401fa544], eax
cmp eax, 2
je 0x140007b3a
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r15d, 0x800
mov r9d, r15d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov r9d, r15d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
jmp 0x140007b3a
movzx eax, word [rcx + 4]
sub ax, 0x42
test dx, ax
jne 0x14000793d
movzx ecx, word [rcx + 6]
test cx, cx
je 0x140007a70
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswdigit]
test eax, eax
je 0x140007aaa
mov rsi, qword [r15]
add rsi, 6
mov qword [rsp + 0x68], rsi
mov eax, edi
sub eax, ebx
sub eax, r13d
movsxd r8, eax
shl r8, 3
lea eax, [rbx + 1]
movsxd rcx, eax
lea rdx, [r14 + rcx*8]
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
sub edi, r13d
mov dword [rsp + 0x58], edi
sub ebx, r13d
mov dword [rsp + 0x50], ebx
mov r8d, 0xfffd
lea edx, [r8 - 0x1e]
jmp 0x14000793d
mov r8, qword [r14 + 8]
movsxd rax, dword [rsi + r15*8 + 0x18]
cmp word [r8 + rax*2 + 2], r12w
jne 0x140007b01
test byte [0x1401fca80], 2
jne 0x140007b06
mov edx, r13d
mov dword [rsp + 0x54], edx
cmp edx, edi
jge 0x140007af5
lea r8d, [rdx + 1]
movsxd rax, r8d
mov rcx, qword [r14 + rax*8]
movsxd rax, edx
mov qword [r14 + rax*8], rcx
mov edx, r8d
jmp 0x140007ad6
sub edi, r13d
mov dword [rsp + 0x58], edi
jmp 0x1400079f4
jmp 0x1400079d3
lea rdx, [0x1401ccf80]
mov rcx, qword [0x1401fb8f0]
call fcn.1400c1c54
jmp 0x140007ad3
lea r8, str._link
lea rdx, [0x1401ccf80]
mov rcx, qword [0x1401fb8f0]
call fcn.1400c1c54
jmp 0x1400079ec
mov rax, qword [rsi + rbx*8 + 0x20]
mov rdx, r14
mov ecx, edi
call rax
jmp 0x140007b63
mov rcx, qword [rsp + 0x810]
xor rcx, rsp
call fcn.14005a600
lea r11, [rsp + 0x820]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret