Function at 0x40b4f0
Capabilities:
Get system information on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x390
lea rcx, [rsp + 0x170]
call fcn.0040126c
mov rcx, qword [rsp + 0x3a0]
call fcn.00403f3c
movzx eax, byte [rsp + 0x3b0]
test eax, eax
je 0x40b558
lea rcx, [rsp + 0x170]
call fcn.0040a1f0
movzx eax, al
test eax, eax
je 0x40b556
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x3a0]
call fcn.00401378
jmp 0x40b581
lea rcx, [rsp + 0x170]
call fcn.0040b190
movzx eax, al
test eax, eax
je 0x40b581
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x3a0]
call fcn.00401378
cmp qword [rsp + 0x3a8], 0
je 0x40b5bf
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x3a8]
movzx eax, word [rcx + rax]
test eax, eax
je 0x40b5bf
mov rdx, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0x3a0]
call fcn.00404204
jmp 0x40b6e4
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 0xfe
lea r9, [rsp + 0x70]
lea r8, str.ProductId
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call fcn.00404704
movzx eax, al
test eax, eax
jne 0x40b605
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov word [rsp + rax + 0x70], cx
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x70]
test eax, eax
je 0x40b624
call fcn.00401558
test eax, eax
je 0x40b6d2
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 0xfe
lea r9, [rsp + 0x70]
lea r8, [0x0048d8c4]
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000002
call fcn.00404704
movzx eax, al
test eax, eax
je 0x40b66b
lea rcx, [rsp + 0x70]
call fcn.00436ec0
cmp eax, 0x2710
jge 0x40b6c1
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 0xfe
lea r9, [rsp + 0x70]
lea r8, [0x0048d8c4]
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call fcn.00404704
movzx eax, al
test eax, eax
je 0x40b6b2
lea rcx, [rsp + 0x70]
call fcn.00436ec0
cmp eax, 0x2710
jge 0x40b6c1
mov edx, 0x7f
lea rcx, [rsp + 0x70]
call fcn.0040b22c
lea rdx, str.4ed6bfa8
lea rcx, [rsp + 0x70]
call fcn.0040b390
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x3a0]
call fcn.00404204
call fcn.0040b3d8
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x40b722
mov r8d, dword [rsp + 0x30]
lea rdx, [0x0048627c]
lea rcx, [rsp + 0x170]
call fcn.004012e8
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x3a0]
call fcn.00401378
mov rcx, qword [rsp + 0x3a0]
call fcn.00401da8
movzx eax, al
test eax, eax
jne 0x40b755
lea rcx, [rsp + 0x170]
call fcn.0040400c
lea rcx, [rsp + 0x170]
call fcn.004012cc
jmp 0x40b823
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x64]
test eax, eax
je 0x40b7d8
movzx eax, word [rsp + 0x66]
test eax, eax
je 0x40b7d8
movzx eax, word [rsp + 0x66]
movzx ecx, word [rsp + 0x64]
mov r9d, eax
mov r8d, ecx
lea rdx, str._u._u
lea rcx, [rsp + 0x170]
call fcn.004012e8
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x3a0]
call fcn.00401378
lea rcx, [rsp + 0x170]
call fcn.0040400c
lea rcx, [rsp + 0x170]
call fcn.004012cc
jmp 0x40b823
call fcn.0040b490
mov r8d, eax
lea rdx, [0x00490abc]
lea rcx, [rsp + 0x170]
call fcn.004012e8
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x3a0]
call fcn.00401378
lea rcx, [rsp + 0x170]
call fcn.0040400c
lea rcx, [rsp + 0x170]
call fcn.004012cc
add rsp, 0x390
pop rdi
ret