Function at 0x140004bc8
Capabilities:
Get system information on windows

Disassembly:
test rcx, rcx
je 0x140004e85
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000e088]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov dl, 0x3f
mov qword [rsp + 0x78], rcx
mov rdi, r9
mov qword [rsp + 0x70], 0x825
mov rsi, r8
mov rbx, rcx
call qword [sym.imp.cmutil.dll_CmStrchrA]
nop dword [rax + rax]
mov rcx, rbx
test rax, rax
jne 0x140004c2f
lea r8, [0x14000a9a8]
jmp 0x140004c4f
call qword [sym.imp.KERNEL32.dll_lstrlenA]
nop dword [rax + rax]
movsxd rcx, eax
cmp byte [rcx + rbx - 1], 0x26
je 0x140004c7c
lea r8, [0x14000a9dc]
mov rcx, rbx
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.1400020c4
test eax, eax
jns 0x140004c7c
mov ecx, dword [0x14000e0a0]
lea rdx, str.AddToUrl_____StringCchCatEx_failed:_0x_x
mov r8d, eax
call fcn.140007c34
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp - 0x4c]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
cmp dword [rbp - 0x40], 1
mov ecx, 0x800
movzx eax, word [rbp - 0x44]
mov ebx, dword [rbp - 0x44]
cmove ebx, eax
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
nop dword [rax + rax]
movzx edx, word [rbp - 0x80]
lea rcx, [0x14000a618]
mov qword [rsp + 0x60], rcx
lea r9, [rsp + 0x70]
mov ecx, dword [rbp - 0x48]
lea r8, [rsp + 0x78]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ecx
mov ecx, dword [rbp - 0x4c]
mov dword [rsp + 0x48], ecx
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x38], eax
lea rax, str.OSArch_uOSType_uLCID_uOSVer_u._u._uCMVer_s
mov dword [rsp + 0x30], edx
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call fcn.1400022d8
test eax, eax
jns 0x140004d4a
mov ecx, dword [0x14000e0a0]
lea rdx, str.AddToUrl_____StringCchPrintfEx_failed:_0x_x_n
mov r8d, eax
call fcn.140007c34
test rsi, rsi
je 0x140004d9f
cmp byte [rsi], 0
je 0x140004d9f
mov rdx, qword [rsp + 0x70]
lea rax, str.PBVer_s
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call fcn.1400022d8
test eax, eax
jns 0x140004d9f
mov ecx, dword [0x14000e0a0]
lea rdx, str.AddToUrl_____StringCchPrintfEx_failed:_0x_x_n
mov r8d, eax
call fcn.140007c34
test rdi, rdi
je 0x140004e64
cmp byte [rdi], 0
je 0x140004e64
mov byte [rbp + 0x60], 0
or rax, 0xffffffffffffffff
mov byte [rbp + 0x51], 0
inc rax
cmp byte [rdi + rax], 0
jne 0x140004dbd
movsxd rsi, eax
test eax, eax
jle 0x140004e15
xor ebx, ebx
mov al, byte [rbx + rdi]
lea rcx, [rbp + 0x60]
mov edx, 0x104
cmp al, 0x20
jne 0x140004de8
lea r8, [0x14000aa54]
jmp 0x140004def
mov byte [rbp + 0x50], al
lea r8, [rbp + 0x50]
call fcn.140001ffc
test eax, eax
jns 0x140004e0d
mov ecx, dword [0x14000e0a0]
lea rdx, str.AddToUrl_____StringCchCat_failed:_0x_x_n
mov r8d, eax
call fcn.140007c34
inc rbx
cmp rbx, rsi
jl 0x140004dcf
mov rdx, qword [rsp + 0x70]
lea rax, [rbp + 0x60]
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
lea rax, str.PB_s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
call fcn.1400022d8
test eax, eax
jns 0x140004e64
mov ecx, dword [0x14000e0a0]
lea rdx, str.AddToUrl_____StringCchPrintfEx_failed:_0x_x_n
mov r8d, eax
call fcn.140007c34
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret