Function at 0x140093130
Capabilities:
Get system information on windows
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x88
cmp byte [0x140128d00], 0
jne 0x1400936c5
mov rdx, qword gs:[0x30]
lea rcx, str.process_init:_0x_zx_n
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
call fcn.14008fdc0
cmp byte [0x140128d41], 0
mov byte [0x140128d00], 1
jne 0x1400931b9
lea rcx, [0x140091200]
mov byte [0x140128d41], 1
call qword [sym.imp.KERNEL32.dll_FlsAlloc]
mov edx, dword [0x140183f10]
mov rcx, qword gs:[0x58]
mov ebx, 0x10
mov dword [0x140124230], eax
mov rcx, qword [rcx + rdx*8]
lea rdx, [0x140123040]
mov qword [rbx + rcx], rdx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
xor ecx, ecx
mov byte [0x140124235], 0
mov eax, 7
cpuid
shr edx, 4
lea rcx, [rsp + 0x40]
and dl, 1
mov byte [0x140128d40], dl
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1400931ef
mov qword [0x140124238], rax
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1400931fe
mov qword [0x140124240], rax
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14009324f
lea rdx, str.VirtualAlloc2FromApp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140128d68], rax
test rax, rax
jne 0x140093246
lea rdx, str.VirtualAlloc2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140128d68], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [0x1400fb060]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140093284
lea rdx, str.NtAllocateVirtualMemoryEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140128d70], rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [0x1400fb090]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400932e7
lea rdx, str.GetCurrentProcessorNumberEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaProcessorNodeEx
mov rcx, rbx
mov qword [0x140128d78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaNodeProcessorMaskEx
mov rcx, rbx
mov qword [0x140128d80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x140128d88], rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x140124454], 0
jne 0x1400932fc
lea rcx, [0x140124450]
call fcn.140091e20
cmp dword [0x140124450], 0
jne 0x140093323
cmp dword [0x140124474], 0
jne 0x14009331a
lea rcx, [0x140124470]
call fcn.140091e20
cmp dword [0x140124470], 0
je 0x140093328
call fcn.1400976a0
call fcn.140091930
xor edx, edx
lea rcx, str.secure_level:__d_n
call fcn.14008fdc0
call fcn.140097300
mov ecx, dword [0x140124230]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
call fcn.140091900
lea rbp, [0x140128ac0]
mov rcx, qword [rax]
add rcx, 0x3c0
cmp rcx, rbp
je 0x140093376
xor edx, edx
mov r8d, 0x240
call fcn.1400bfec0
xor edx, edx
mov r8d, 0x240
mov rcx, rbp
call fcn.1400bfec0
cmp qword [0x140128d48], 0
jne 0x1400933ca
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, qword [0x140128d58]
ucomisd xmm1, xmm0
jp 0x1400933be
jne 0x1400933be
call fcn.14008c9f0
mov rbx, rax
call fcn.14008c9f0
sub rax, rbx
mov qword [0x140128d58], rax
call fcn.14008c9f0
mov qword [0x140128d48], rax
mov rdx, qword [0x140124474]
test edx, edx
jne 0x1400933e8
lea rcx, [0x140124470]
call fcn.140091e20
mov rdx, qword [0x140124474]
mov eax, dword [0x140124470]
test eax, eax
je 0x140093455
test edx, edx
jne 0x140093408
lea rcx, [0x140124470]
call fcn.140091e20
mov eax, dword [0x140124470]
test eax, eax
jns 0x140093410
xor eax, eax
jmp 0x14009341a
mov ecx, 0x20000
cmp eax, ecx
cmovg eax, ecx
cmp dword [0x140124494], 0
movsxd rbx, eax
jne 0x140093432
lea rcx, [0x140124490]
call fcn.140091e20
mov edx, dword [0x140124490]
mov rcx, rbx
imul r8, rbx, 0x1f4
cmp edx, 0xffffffff
je 0x14009344e
call fcn.140093720
jmp 0x140093455
xor edx, edx
call fcn.140093960
mov rdx, qword [0x1401244b4]
test edx, edx
jne 0x140093473
lea rcx, [0x1401244b0]
call fcn.140091e20
mov rdx, qword [0x1401244b4]
mov eax, dword [0x1401244b0]
test eax, eax
je 0x1400936b5
test edx, edx
jne 0x140093497
lea rcx, [0x1401244b0]
call fcn.140091e20
mov eax, dword [0x1401244b0]
test eax, eax
jle 0x1400936b5
movsxd rbx, eax
shl rbx, 0xa
add rbx, 0x3ffffff
and rbx, 0xfffffffffc000000
je 0x1400936b5
mov rcx, rbx
mov qword [rsp + 0x80], rdi
call fcn.14008e060
mov r8, qword [0x140124238]
mov r10, rax
lea rcx, [r8 - 1]
mov r9, rcx
lea rax, [rcx + 0x4000000]
and r9, r8
jne 0x1400934f2
mov rdi, rcx
not rdi
and rdi, rax
jmp 0x1400934fe
xor edx, edx
div r8
mov rdi, rax
imul rdi, r8
mov byte [rsp + 0x90], 0
cmp rdi, r8
jb 0x1400936ad
mov qword [rsp + 0x70], r15
lea r15, [rdi - 1]
test rdi, r15
jne 0x1400936a8
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0x78], r14
test r9, r9
jne 0x14009353f
lea r14, [rcx + r10]
not rcx
and r14, rcx
jmp 0x14009354f
xor edx, edx
lea rax, [rcx + r10]
div r8
mov r14, rax
imul r14, r8
mov r9b, 1
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x90]
movzx r8d, r9b
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.1400922c0
mov rsi, rax
test rax, rax
je 0x14009369b
xor edx, edx
div rdi
test rdx, rdx
je 0x140093611
mov r9, rbp
mov r8b, 1
mov rdx, r14
mov rcx, rsi
call fcn.140092460
mov r9, rdi
mov dword [rsp + 0x20], 1
mov r8, rsi
lea rcx, str.unable_to_allocate_aligned_OS_memory_directly__fall_back_to_over_allocation___zu_bytes__address:__p__alignment:__zu__commit:__d__n
mov rdx, r14
call fcn.14008fe20
mov rax, rdi
not rax
cmp r14, rax
jae 0x14009369b
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rbp
lea rcx, [r14 + rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.1400922c0
test rax, rax
je 0x14009369b
lea rsi, [r15 + rax]
mov r9, rbp
not r15
xor r8d, r8d
and rsi, r15
mov rdx, r14
mov rcx, rsi
call fcn.14008de20
test rsi, rsi
je 0x14009369b
movzx edi, byte [rsp + 0x90]
mov r8b, 1
movzx r9d, dil
mov dword [rsp + 0x28], 0xffffffff
mov rdx, rbx
mov byte [rsp + 0x20], 1
mov rcx, rsi
call fcn.140091b90
test al, al
jne 0x140093673
mov rcx, rbx
call fcn.14008e060
mov rdx, rax
mov r9, rbp
mov r8b, 1
mov rcx, rsi
call fcn.140092460
shr rbx, 0xa
lea rcx, str.failed_to_reserve__zu_k_memory_n
mov rdx, rbx
call fcn.14008fdc0
jmp 0x14009369b
test dil, dil
lea rax, str.__in_large_os_pages_
lea r8, [0x1400f46e0]
cmovne r8, rax
lea rcx, str.reserved__zu_KiB_memory_s_n
shr rbx, 0xa
mov rdx, rbx
call fcn.14008fdc0
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x88
ret