Function at 0x10c48fa
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10e3200]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x5c], ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x3c], ebx
call fcn.010c50dc
mov esi, eax
cmp esi, ebx
jl 0x10c4af7
push ebx
push 0x18
lea eax, [ebp - 0xa4]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x10c4af7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x6a
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x10c4988
mov eax, 0xc0000017
jmp 0x10c4b2f
push edi
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0xa4], ebx
jbe 0x10c4adb
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call fcn.010c6de8
test eax, eax
jl 0x10c4ac0
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x3c], ebx
jne 0x10c49e5
push 5
pop ecx
lea edi, [ebp - 0x28]
lea esi, [eax + 4]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x10c49e5
push dword [ebp - 0x40]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x10c4ac0
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], edi
cmp eax, ebx
je 0x10c4b3f
cmp edi, 1
jne 0x10c4b44
push dword [eax]
push dword [ebp - 0x38]
push 0x10ccc02
push 0x35
push dword [ebp - 0x34]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
push dword [ebp - 0x34]
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push ebx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
push 3
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x80000000
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x84], 0x18
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], 0x40
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jl 0x10c4a7a
push dword [ebp - 0x68]
call dword [sym.imp.ntdll.dll_NtClose]
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x40]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x3c], ebx
je 0x10c4ad2
cmp byte [ebp - 0x2d], 1
jne 0x10c4ac0
push dword [ebp - 0x34]
call fcn.010c3fa0
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x10c4abd
push eax
push dword [ebp - 0x3c]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x10c4be0
mov byte [ebp - 0x2d], bl
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xa4]
jb 0x10c499b
cmp byte [ebp - 0x2d], bl
jne 0x10c4be0
push dword [ebp - 0x34]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov esi, 0xc000000d
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 0x3c], ebx
je 0x10c4b12
push dword [ebp - 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x48], ebx
je 0x10c4b2d
push dword [ebp - 0x48]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010987b7
leave
ret 8
cmp edi, 1
je 0x10c4b4c
cmp edi, ebx
jne 0x10c4a7a
mov dword [ebp - 0x50], ebx
cmp edi, ebx
jne 0x10c4b5d
cmp eax, ebx
jne 0x10c4b5a
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], ebx
cmp dword [eax + 4], ebx
jbe 0x10c4a7a
mov dword [ebp - 0x4c], ebx
mov ecx, dword [ebp - 0x4c]
lea esi, [ecx + eax + 0x30]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x10c4bc6
push eax
push dword [ebp - 0x38]
push 0x10ccc02
push 0x35
push dword [ebp - 0x34]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
cmp edi, 1
jne 0x10c4bb0
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
cmp ecx, dword [esi + 8]
jne 0x10c4bc6
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0xc]
je 0x10c4a76
jmp 0x10c4bc6
push 4
lea edi, [esi + 0x30]
mov esi, dword [ebp - 0x50]
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x10c4a76
mov edi, dword [ebp - 0x6c]
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
add dword [ebp - 0x4c], 0x90
cmp ecx, dword [eax + 4]
jb 0x10c4b6f
jmp 0x10c4a7a
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x34]
call fcn.010c6924
test eax, eax
jl 0x10c4c0c
push dword [ebp - 0x34]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
xor esi, esi
jmp 0x10c4af6