Function at 0x180054ef0
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 - 0xa68]
sub rsp, 0xb68
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0xa50], rax
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r8d
mov r15, rdx
mov rbx, rcx
mov r12d, dword [rbp + 0xad0]
mov dword [rsp + 0x38], r12d
mov rdi, qword [rbp + 0xad8]
add rcx, 0x928
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx + 0x950]
xor esi, esi
mov rax, qword [rbx + 0x900]
mov rcx, qword [rbx + 0x908]
cmp rax, rcx
je 0x180054f8e
mov rdx, qword [rax]
cmp qword [rdx + 8], r15
je 0x180054f84
add rax, 8
cmp rax, rcx
jne 0x180054f70
jmp 0x180054f8e
mov r13, rdx
mov esi, 1
jmp 0x180054f93
mov r13, qword [rsp + 0x40]
dec dword [rbx + 0x950]
lea rcx, [rbx + 0x928]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x18005547e
mov esi, dword [rsp + 0x34]
cmp esi, 4
je 0x180055018
mov rax, qword [0x1800d6f10]
test rax, rax
jne 0x180054fe7
mov ecx, 0x2a8
call fcn.18007b11c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180054fe0
mov rcx, rax
call fcn.180015880
nop
mov qword [0x1800d6f10], rax
mov rcx, rax
call fcn.180015af0
test eax, eax
je 0x180055018
cmp esi, 1
je 0x180055018
xor r9d, r9d
lea r8, str.test
lea rdx, [0x1800aebe8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x180055498
test rdi, rdi
jne 0x180055023
mov r14d, dword [r13 + 0x30]
jmp 0x18005502b
lea r14d, [rdi + r12 + 0x200]
lea rcx, [rbp - 0x20]
call fcn.180033230
nop
lea rcx, [rbx + 0x888]
cmp qword [rcx + 0x10], 0
jbe 0x180055050
lea r8, [rbp - 0x20]
mov rdx, qword [r13]
call fcn.18005bd60
xor ebx, ebx
mov qword [rbp - 0x70], rbx
lea ecx, [rbx + 0x18]
call fcn.18007b11c
mov rdi, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x18005544c
mov qword [rbp - 0x78], rax
mov qword [rax], rax
mov qword [rax + 8], rax
lea r12, [rbp + 0x54]
xor esi, esi
cmp dword [rbp + 0x50], esi
jbe 0x1800550e9
nop word [rax + rax]
mov rax, qword [r12]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.180034420
movabs rcx, 0x1ffffffffffffffe
sub rcx, rbx
cmp rcx, 1
jb 0x1800550dc
inc rbx
mov qword [rbp - 0x70], rbx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
add r12, 8
inc esi
cmp esi, dword [rbp + 0x50]
jb 0x180055090
jmp 0x1800550e9
lea rcx, str.list_T__too_long
call fcn.180078320
int3
mov eax, dword [rbp + 0x2c]
mov dword [rsp + 0x50], eax
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea r8d, [r14 - 0x200]
lea r9, [rsp + 0x58]
mov r12d, dword [rsp + 0x38]
mov edx, r12d
lea rcx, [rbp - 0x78]
call fcn.18003a960
sub r14d, r12d
mov r9, qword [rsp + 0x60]
mov rcx, r9
mov rbx, qword [rsp + 0x58]
sub rcx, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov rsi, rdx
sar rsi, 1
mov rax, rsi
shr rax, 0x3f
add rsi, rax
je 0x18005515a
cmp dword [r9 - 4], r14d
jbe 0x18005515a
mov r14d, dword [r9 - 4]
mov eax, r14d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rax
mov r9d, r12d
mov r8d, dword [rsp + 0x30]
mov edx, 1
mov rcx, r15
call qword [0x1800d96e8]
mov r12, rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov dword [rsp + 0x40], eax
test r12, r12
jne 0x180055236
test rbx, rbx
je 0x1800551a9
mov rcx, rbx
call fcn.18007a7a4
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x1800551c8
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rdi
jne 0x1800551b8
mov rcx, rdi
call fcn.18007a7a4
nop
mov rax, qword [rbp + 0x210]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rbp + 0x210]
mov qword [rax + 8], rax
mov qword [rbp + 0x218], 0
mov rax, qword [rbp + 0x210]
cmp rcx, rax
je 0x180055217
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
mov rax, qword [rbp + 0x210]
cmp rbx, rax
jne 0x180055200
mov rcx, rax
call fcn.18007a7a4
cmp qword [rbp - 8], 8
jb 0x18005522f
mov rcx, qword [rbp - 0x20]
call fcn.18007a7a4
xor eax, eax
jmp 0x180055498
lea r14, [r12 + 0x200]
test rsi, rsi
je 0x180055366
xor ecx, ecx
test rsi, rsi
je 0x180055366
lea r15, [rbx + 4]
lea r12, vtable.CEnc.0
mov ebx, ecx
mov edi, dword [rsp + 0x50]
jmp 0x180055272
xor ecx, ecx
mov qword [rbp + 0x230], r12
mov dword [rbp + 0xa40], ecx
xor eax, eax
mov qword [rbp + 0x238], rax
mov qword [rbp + 0x240], rax
mov qword [rbp + 0x248], rax
mov qword [rbp + 0x250], rax
mov qword [rbp + 0x258], rax
mov qword [rbp + 0x260], rax
mov qword [rbp + 0x268], rax
mov qword [rbp + 0x270], rax
mov dword [rbp + 0xa38], ecx
mov dword [rbp + 0xa48], ecx
xor edx, edx
lea rcx, [rbp + 0x230]
call fcn.18003f2f0
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rbp - 0x30]
shl r11d, 5
mov dword [rbp + 0xa4c], r11d
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180013330
mov r11d, dword [rsp + 0x30]
mov dword [rbp + 0xa40], r11d
mov edx, edi
lea rcx, [rbp + 0x230]
call fcn.18003f2f0
mov r11d, dword [r15]
mov eax, dword [r15 + 4]
sub eax, r11d
lea r8, [r11 + r14]
mov dword [rsp + 0x20], eax
mov r9, r8
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0xa40]
call fcn.18006c590
nop
inc ebx
add r15, 0xc
movsxd rax, ebx
cmp rax, rsi
jb 0x180055270
mov rdi, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x78]
mov r15d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov dword [r13 + 0x2c], eax
mov edx, dword [rsp + 0x34]
mov dword [r13 + 0x34], edx
lea rcx, [r13 + 0x38]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x18005538f
lea rdx, [rsp + 0x58]
call fcn.18005a530
mov qword [r13 + 0x18], r14
mov qword [r13 + 0x20], r12
mov eax, dword [rsp + 0x38]
mov dword [r13 + 0x14], eax
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [r13 + 0x18]
test rbx, rbx
je 0x1800553ba
mov rcx, rbx
call fcn.18007a7a4
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x1800553e0
nop dword [rax]
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
cmp rbx, rdi
jne 0x1800553d0
mov rcx, rdi
call fcn.18007a7a4
nop
mov rax, qword [rbp + 0x210]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rbp + 0x210]
mov qword [rax + 8], rax
mov qword [rbp + 0x218], 0
mov rax, qword [rbp + 0x210]
cmp rcx, rax
je 0x18005542f
mov rbx, qword [rcx]
call fcn.18007a7a4
mov rcx, rbx
mov rax, qword [rbp + 0x210]
cmp rbx, rax
jne 0x180055418
mov rcx, rax
call fcn.18007a7a4
cmp qword [rbp - 8], 8
jb 0x180055447
mov rcx, qword [rbp - 0x20]
call fcn.18007a7a4
mov rax, rsi
jmp 0x180055498
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.18007aac4
lea r11, vtable.std::bad_alloc.0
mov qword [rsp + 0x58], r11
lea rdx, [0x1800cc1e8]
lea rcx, [rsp + 0x58]
call fcn.18007e92c
nop
mov qword [rsp + 0x20], rdi
mov r9d, r12d
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x34]
mov rcx, r15
call qword [0x1800d96e8]
mov rcx, qword [rbp + 0xa50]
xor rcx, rsp
call fcn.18007a7c0
add rsp, 0xb68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret