Function at 0x40e840
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
lea esi, [edi + 0xc]
mov ecx, esi
call fcn.0040c040
lea eax, [ebp - 0x15c]
push eax
mov byte [edi + 0x30], 0
mov dword [ebp - 0x15c], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x154]
mov dword [edi + 8], eax
lea ebx, [ebp - 0x148]
mov eax, esi
mov dword [edi], ecx
mov dword [edi + 4], edx
call fcn.004022c0
call fcn.0040e9a0
mov eax, 0x495f10
call fcn.0040e9c0
mov eax, dword [edi]
xor ebx, ebx
sub eax, 5
mov byte [edi + 0x2c], bl
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
je 0x42b880
dec eax
jne 0x40e8fa
mov eax, dword [edi + 4]
mov byte [edi + 0x1d], 1
mov byte [edi + 0x1f], 1
mov byte [edi + 0x21], 1
cmp eax, ebx
je 0x42b831
cmp eax, 1
jne 0x42b860
mov byte [edi + 0x23], al
mov byte [edi + 0x25], al
cmp byte [ebp - 0x42], al
jne 0x42b851
mov word [edi + 0x26], 0x101
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.00410b20
cmp dword [ebp - 8], ebx
je 0x40e92c
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00410b70
call eax
cmp dword [ebp - 4], 1
jne 0x40e92c
mov byte [edi + 0x2c], 1
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
cmp byte [edi + 0x2c], bl
je 0x42b8e1
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call fcn.00410b90
cmp dword [ebp - 0x14], ebx
je 0x42b8d2
lea edx, [ebp - 0x40]
push edx
call fcn.00410be0
call eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp eax, ebx
je 0x40e984
push eax
call esi
mov eax, dword [ebp - 0x10]
mov dx, word [ebp - 0x40]
mov word [edi + 0x2e], dx
cmp eax, ebx
je 0x40e996
push eax
call esi
pop esi
mov eax, edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x42], 1
jne 0x42b842
mov word [edi + 0x22], 0x101
jmp 0x40e8fa
mov byte [edi + 0x23], 1
mov word [edi + 0x24], 0x101
jmp 0x40e8fa
mov byte [edi + 0x27], 1
mov word [edi + 0x28], 0x101
jmp 0x40e8fa
cmp eax, 2
jne 0x40e8fa
mov word [edi + 0x2a], 0x101
mov byte [edi + 0x29], 1
mov byte [edi + 0x27], 1
mov byte [edi + 0x23], 1
jmp 0x40e8fa
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x42b88f
mov word [edi + 0x1c], 0x101
jmp 0x42b8c0
cmp eax, 1
jne 0x42b89f
mov byte [edi + 0x1d], al
mov word [edi + 0x1e], 0x101
jmp 0x42b8c0
cmp eax, 2
jne 0x42b8c0
cmp byte [ebp - 0x42], 1
mov byte [edi + 0x1d], 1
mov byte [edi + 0x1f], 1
mov byte [edi + 0x21], 1
jne 0x42b8bc
mov byte [edi + 0x1e], 1
jmp 0x42b8c0
mov byte [edi + 0x20], 1
movzx eax, byte [ebp - 0x44]
shr eax, 6
and eax, 1
mov byte [edi + 0x30], al
jmp 0x40e8fa
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x40e974
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40e984