Function at 0x180002290
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push rbx
push r12
push r13
push r14
sub rsp, 0x58
xor ebx, ebx
xor r12d, r12d
mov r13, rdx
mov r14, rcx
cmp rdx, 0x40
jae 0x1800022c6
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x58
pop r14
pop r13
pop r12
pop rbx
ret
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp rdx, rax
jb 0x1800022ad
mov eax, dword [rcx + r14 + 0x38]
mov qword [rsp + 0x80], rbp
lea rbp, [rcx + r14]
test al, 1
je 0x1800022fd
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000253a
movzx ecx, word [rbp + 0x14]
mov r9, rax
movzx eax, word [rbp + 6]
mov qword [rsp + 0x90], rdi
test eax, eax
je 0x180002343
lea rdx, [rcx + rbp + 0x24]
mov r8, rax
nop dword [rax]
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x18000232e
mov eax, dword [rdx]
add rax, r9
jmp 0x180002332
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
sub r8, 1
jne 0x180002320
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rbp + 0x50]
lea rdi, [rax + r11 - 1]
lea rax, [r11 - 1]
lea rcx, [r11 + rbx - 1]
not rax
and rdi, rax
lea rax, [r11 - 1]
not rax
and rcx, rax
cmp rdi, rcx
je 0x18000238b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180002532
mov rcx, qword [rbp + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
mov qword [rsp + 0x88], rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800023e1
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800023e1
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000252a
lea rcx, [rsi + rdi]
mov qword [rsp + 0x50], r15
movabs r15, 0xffffffff00000000
mov rax, rsi
and rcx, r15
and rax, r15
cmp rax, rcx
jae 0x18000244d
mov ecx, 0x10
call qword [sym.imp.MSVCR90.dll_malloc]
mov rbx, rax
test rax, rax
je 0x18000246d
mov qword [rax], r12
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
mov qword [rax + 8], rsi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x1800024a0
lea rcx, [rax + rdi]
and rax, r15
and rcx, r15
cmp rax, rcx
jb 0x180002402
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1800024af
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor r8d, r8d
lea rdx, [0x180002250]
mov rcx, r12
call fcn.180001bd0
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180002523
xor r8d, r8d
lea rdx, [0x180002250]
mov rcx, rbx
jmp 0x18000248b
mov qword [rax + 8], rsi
movzx eax, word [rbp + 0x16]
xor r15d, r15d
shr eax, 0xd
mov qword [rdi + 0x58], r15
and eax, 1
mov dword [rdi + 0x20], eax
lea rax, [0x180002240]
mov qword [rdi + 0x28], rax
lea rax, [0x180002250]
mov qword [rdi + 0x30], rax
lea rax, [0x180002260]
mov qword [rdi + 0x38], rax
lea rax, [0x180002270]
mov qword [rdi + 0x40], rax
lea rax, [0x180002280]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x24]
mov qword [rdi + 0x70], r12
mov dword [rdi + 0x68], eax
mov edx, dword [rbp + 0x54]
cmp r13, rdx
jae 0x18000254e
lea ecx, [r15 + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.180002820
xor eax, eax
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
add rsp, 0x58
pop r14
pop r13
pop r12
pop rbx
ret
mov r9d, 4
mov r8d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rdx, r14
mov rcx, rax
mov rbx, rax
call sub.MSVCR90.dll_memcpy
movsxd rax, dword [r14 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rbp
mov rdx, r13
mov qword [rdi], rax
mov rcx, r14
mov qword [rax + 0x30], rsi
call fcn.180001c40
test eax, eax
je 0x18000251b
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rbp + 0x30]
je 0x1800025b2
mov rcx, rdi
call fcn.180001fd0
mov dword [rdi + 0x24], eax
jmp 0x1800025b9
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.1800020a0
test eax, eax
je 0x18000251b
mov rcx, rdi
call fcn.180001d70
test eax, eax
je 0x18000251b
mov rax, qword [rdi]
mov rbp, qword [rdi + 8]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x180002619
mov rbx, qword [rcx + rbp + 0x18]
test rbx, rbx
je 0x180002619
mov rax, qword [rbx]
test rax, rax
je 0x180002619
nop dword [rax]
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x180002600
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x18000266c
cmp dword [rdi + 0x20], r15d
je 0x18000265c
xor r8d, r8d
lea rax, [rsi + rcx]
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x18000264d
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000251b
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x180002525
lea rax, [rsi + rcx]
mov qword [rdi + 0x60], rax
mov rax, rdi
jmp 0x180002525
mov qword [rdi + 0x60], r15
mov rax, rdi
jmp 0x180002525