Function at 0xc54afe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00c577c7
lea eax, [ebp - 0x154]
mov byte [esi + 0x38], 0
push eax
mov dword [ebp - 0x154], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x150]
mov ecx, edi
mov dword [esi], eax
mov eax, dword [ebp - 0x14c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x148]
mov dword [esi + 8], eax
lea eax, [ebp - 0x140]
push eax
call fcn.00c57d2c
xor eax, eax
cmp dword [edi + 4], eax
ja 0xc54c69
or eax, 0xffffffff
mov ecx, edi
cmp eax, 0xffffffff
jne 0xc54c70
push eax
push 0
call fcn.00c57e8c
push 0xcdfaec
mov ecx, edi
call fcn.00c57886
mov eax, dword [esi]
xor ecx, ecx
mov word [esi + 0x33], cx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov word [esi + 0x30], cx
mov byte [esi + 0x32], cl
push 1
pop ebx
sub eax, 5
je 0xc8dc8d
dec eax
jne 0xc8dbcb
mov eax, dword [esi + 4]
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1f], bl
test eax, eax
je 0xc8dc13
cmp eax, ebx
je 0xc8dc2e
cmp eax, 2
jne 0xc8dc5a
mov byte [esi + 0x27], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x29], bl
cmp byte [ebp - 0x3a], bl
jne 0xc8dc4f
mov byte [esi + 0x28], bl
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], ebx
jne 0xc54c0d
mov byte [esi + 0x34], bl
and dword [ebp - 0x38], 0
lea edi, [ebp - 0x34]
push 8
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
cmp byte [esi + 0x34], al
je 0xc54c89
and dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
and dword [ebp - 8], eax
call fcn.00c54c95
test al, al
je 0xc54c7d
lea ecx, [ebp - 0x10]
call fcn.00c54c95
test al, al
mov eax, dword [ebp - 8]
je 0xc54c76
lea ecx, [ebp - 0x38]
push ecx
call eax
cmp dword [ebp - 0x10], 0
je 0xc54c56
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ax, word [ebp - 0x38]
mov word [esi + 0x36], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi]
jmp 0xc8db90
push eax
jmp 0xc54b73
mov eax, 0xc8b752
jmp 0xc54c41
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0xc54c47
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0xc54c56
movzx edx, word [ecx]
xor edi, edi
push 0x20
mov dword [ebp - 0x14], edx
xor ebx, ebx
pop edx
cmp word [ebp - 0x14], dx
jne 0xc8dba4
inc ebx
movzx edx, word [edi*2 + 0xcdfaee]
inc edi
test dx, dx
jne 0xc8db9d
lea edi, [esi + 0xc]
test ebx, ebx
je 0xc54b67
inc eax
add ecx, 2
cmp eax, dword [edi + 4]
jb 0xc8db90
jmp 0xc54b64
sub eax, 4
jne 0xc54bf1
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1f], bl
mov byte [esi + 0x2b], bl
mov byte [esi + 0x29], bl
mov byte [esi + 0x27], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x2d], bl
mov byte [esi + 0x2f], bl
cmp dword [esi + 4], ecx
jne 0xc54bf1
mov byte [esi + 0x31], bl
cmp byte [ebp - 0x3a], bl
jne 0xc8dc08
mov byte [esi + 0x30], bl
jmp 0xc54bf1
mov byte [esi + 0x33], bl
mov byte [esi + 0x32], bl
jmp 0xc54bf1
mov byte [esi + 0x21], bl
cmp byte [ebp - 0x3a], bl
jne 0xc8dc23
mov byte [esi + 0x20], bl
jmp 0xc54bf1
mov byte [esi + 0x23], bl
mov byte [esi + 0x22], bl
jmp 0xc54bf1
mov byte [esi + 0x21], bl
mov byte [esi + 0x23], bl
mov byte [esi + 0x25], bl
cmp byte [ebp - 0x3a], bl
jne 0xc8dc44
mov byte [esi + 0x24], bl
jmp 0xc54bf1
mov byte [esi + 0x27], bl
mov byte [esi + 0x26], bl
jmp 0xc54bf1
mov byte [esi + 0x2b], bl
mov byte [esi + 0x2a], bl
jmp 0xc54bf1
cmp eax, 3
jne 0xc54bf1
mov byte [esi + 0x2b], bl
mov byte [esi + 0x29], bl
mov byte [esi + 0x27], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x2d], bl
cmp byte [ebp - 0x3a], bl
jne 0xc8dc82
mov byte [esi + 0x2c], bl
jmp 0xc54bf1
mov byte [esi + 0x2f], bl
mov byte [esi + 0x2e], bl
jmp 0xc54bf1
cmp dword [esi + 4], ebx
jne 0xc8dca9
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1c], bl
movzx eax, byte [ebp - 0x3c]
shr eax, 6
and eax, ebx
mov byte [esi + 0x38], al
jmp 0xc54bf1
cmp dword [esi + 4], 2
jne 0xc8dc98
mov byte [esi + 0x1d], bl
mov byte [esi + 0x1f], bl
cmp byte [ebp - 0x3a], bl
je 0xc8dc95
mov byte [esi + 0x1e], bl
jmp 0xc8dc98