Function at 0x10037b70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ec9b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
push 0xc4
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0xb8], 0
call fcn.10035630
xor ecx, ecx
test al, al
push 0x40
lea eax, [ebp - 0xf8]
setne cl
push 0
push eax
mov dword [ebp - 0x3c], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 4], 0
test esi, esi
je 0x10037dcf
cmp edi, 8
jl 0x10037dcf
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 1
jne 0x10037dcf
push ecx
lea ecx, [ebp - 0xfc]
call fcn.100355b0
mov eax, dword [ebp - 0xb8]
xorps xmm0, xmm0
mov ecx, dword [eax]
mov eax, 0x51eb851f
imul ecx
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, 0xff
movzx eax, cl
cmp ecx, edx
cmovl edx, eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x10c], edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
sub eax, 1
je 0x10037c85
sub eax, 1
je 0x10037c7e
sub eax, 2
je 0x10037c77
mov eax, 3
jmp 0x10037c87
mov eax, 2
jmp 0x10037c87
mov eax, 1
jmp 0x10037c87
xor eax, eax
mov edx, dword [ebp - 0xfc]
movzx ecx, byte [ebp - 0xea]
add cx, cx
lea eax, [eax + edx*4]
shl eax, 0x1c
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x108], eax
movzx eax, byte [ebp - 0xe6]
add cx, ax
movzx eax, byte [ebp - 0xe7]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xe8]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xe9]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xf3]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xf5]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xf6]
add cx, cx
add cx, ax
movzx eax, cx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], eax
test edx, edx
jne 0x10037d74
movzx ecx, byte [ebp - 0xc8]
movzx eax, byte [ebp - 0xcf]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xd0]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xca]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xc9]
add cx, cx
add cx, ax
movzx eax, byte [ebp - 0xcd]
add cx, cx
add cx, ax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add word [ebp - 0x100], cx
mov edx, dword [ebp - 0x100]
jmp 0x10037d7a
mov edx, dword [ebp - 0x104]
mov ecx, dword [ebp - 0x108]
mov eax, ecx
sar eax, 0x18
mov byte [esi], al
mov eax, ecx
sar eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
sar eax, 8
mov byte [esi + 2], al
mov al, byte [ebp - 0x100]
mov byte [esi + 5], al
mov eax, dword [ebp - 0x10c]
sar edx, 8
mov byte [esi + 6], al
mov eax, dword [ebp - 0xb8]
mov byte [esi + 3], cl
mov byte [esi + 4], dl
test eax, eax
je 0x10037dc5
push eax
call fcn.1005b6d6
add esp, 4
mov al, 1
jmp 0x10037de4
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x10037de2
push eax
call fcn.1005b6d6
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret