Function at 0x405f10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x5c], 0xca3
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
mov dx, word [ebp + 0xc]
mov word [ebp - 0x18], dx
movzx eax, word [ebp - 0x18]
add eax, 0x127
movzx ecx, word [ebp + 0xc]
cmp eax, ecx
jne 0x405f6f
mov edx, dword [ebp - 0x6c]
or edx, 0xdad
mov dword [ebp - 0x5c], edx
mov dword [ebp + 0x14], 0x370
mov eax, dword [ebp - 0x5c]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
call fcn.004015e0
jmp 0x406236
mov edx, dword [ebp - 0x6c]
sub edx, 0x53bf
cmp edx, dword [ebp - 0x5c]
je 0x406236
mov eax, 0x1a3
mov word [ebp - 0x24], ax
movsx ecx, word [ebp - 0x24]
cmp ecx, 0x469
jle 0x406009
mov dl, byte [ebp + 8]
mov byte [ebp + 0x10], dl
movzx eax, word [ebp + 0xc]
xor eax, 0x8e7
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0x5c]
sar ecx, 0x19
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov dword [ebp - 0x60], eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0x4cf
je 0x405fd1
jmp 0x405ffe
movzx ecx, word [ebp - 0x24]
push ecx
push 0xca
call fcn.004010e0
add esp, 8
movzx edx, word [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x5c]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x14]
call fcn.00405e60
jmp 0x406009
movsx edx, word [ebp - 0x24]
shl edx, 2
mov word [ebp - 0x24], dx
movzx eax, word [ebp - 0x18]
sub eax, 0x7a8
movzx ecx, word [ebp + 0xc]
cmp eax, ecx
jne 0x406022
mov dx, word [ebp - 0x18]
mov word [ebp + 0xc], dx
mov ax, word [ebp - 0x24]
mov word [ebp - 0x70], ax
movsx ecx, word [ebp - 0x70]
add ecx, 0x79a
movsx edx, word [ebp - 0x24]
cmp ecx, edx
jl 0x4061b6
mov ax, word [ebp - 0x18]
mov word [ebp - 0x14], ax
movsx ecx, word [ebp - 0x24]
add ecx, 0x146
movsx edx, word [ebp - 0x70]
cmp ecx, edx
je 0x40619b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
sar edx, cl
mov dword [ebp - 0x6c], edx
mov ax, word [ebp - 0x14]
mov word [ebp - 0x20], ax
mov byte [ebp - 0xd], 0x87
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov dl, byte [ebp + 0x10]
mov byte [ebp - 0x4d], dl
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], ecx
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x55], dl
mov ax, word [ebp - 0x18]
mov word [ebp - 0xc], ax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x6c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
cdq
idiv dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x64]
shl edx, cl
cmp eax, edx
jl 0x40614c
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
add edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x78]
mov dword [eax], edx
movzx ecx, byte [ebp - 0x55]
sub ecx, 0xe0
movzx edx, byte [ebp - 0xd]
cmp ecx, edx
jg 0x406133
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
push ecx
movzx edx, byte [ebp - 0xd]
push edx
call fcn.004010e0
add esp, 8
mov eax, dword [ebp - 0x74]
mov dword [ebp + 0x14], eax
movzx ecx, byte [ebp - 0x55]
and ecx, 0x94
mov byte [ebp - 0xd], cl
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x68]
mov dword [eax], edx
jmp 0x40614a
mov cx, word [ebp - 0x14]
mov word [ebp + 0xc], cx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [edx]
sub ecx, dword [eax]
mov edx, dword [ebp - 0x78]
mov dword [edx], ecx
jmp 0x406164
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0x14]
and ecx, dword [eax]
cmp ecx, dword [ebp - 0x74]
jbe 0x406164
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp + 0x14]
add eax, dword [edx]
mov dword [ebp - 0x74], eax
mov cl, byte [ebp - 0x4d]
mov byte [ebp - 0x80], cl
cmp byte [ebp - 0x80], 0x60
je 0x406172
jmp 0x406190
mov dl, byte [ebp - 0x4d]
mov byte [ebp + 8], dl
movsx eax, word [ebp - 0x24]
movsx ecx, word [ebp - 0x70]
sar eax, cl
mov ecx, dword [ebp - 0x1c]
mov word [ecx], ax
mov dx, word [ebp - 0x20]
mov word [ebp + 0xc], dx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x5c]
or edx, 0x4c7f
mov dword [ebp - 0x6c], edx
movsx eax, word [ebp - 0x24]
xor eax, 0x226
mov word [ebp - 0x70], ax
jmp 0x406222
movsx ecx, word [ebp - 0x24]
sub ecx, 0x4e3
mov word [ebp - 0x70], cx
movsx edx, word [ebp - 0x24]
sub edx, 0x15c
mov word [ebp - 0x70], dx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
movzx edx, word [ebp - 0x24]
push edx
movzx eax, word [ebp - 0x70]
push eax
movzx ecx, word [ebp - 0x70]
push ecx
call fcn.004017d0
add esp, 0x14
mov dx, word [ebp - 0x18]
mov word [ebp + 0xc], dx
mov al, byte [ebp + 8]
mov byte [ebp - 0x84], al
cmp byte [ebp - 0x84], 0x7b
je 0x40620d
jmp 0x406215
mov cx, word [ebp - 0x18]
mov word [ebp + 0xc], cx
movzx edx, word [ebp - 0x18]
push edx
call fcn.004062a0
add esp, 4
movsx eax, byte [ebp + 8]
add eax, 0x2f
movsx ecx, byte [ebp + 0x10]
cmp eax, ecx
jl 0x406236
call fcn.00401510
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x88], 0xb299
je 0x406267
cmp dword [ebp - 0x88], 0xeef8
je 0x406259
jmp 0x406297
mov eax, dword [ebp - 0x5c]
push eax
call section..text
add esp, 4
jmp 0x406297
mov ecx, dword [ebp - 0x5c]
and ecx, 0x114d
mov dword [ebp - 0x6c], ecx
mov dx, word [ebp - 0x18]
mov word [ebp + 0xc], dx
mov al, byte [ebp + 0x10]
mov byte [ebp + 8], al
movzx ecx, word [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push 0x66
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x14]
call fcn.00405e60
mov eax, 0x78
mov esp, ebp
pop ebp
ret