Function at 0x1002cf7e
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0x59c
mov eax, 0x10077cf5
call fcn.100588d8
lea eax, [ebx + 0x90]
push eax
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x558], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x2c], esi
je 0x1002d242
cmp dword [ebx + 0x1c], esi
jne 0x1002d008
push 0x38
call fcn.100515d4
pop ecx
mov dword [ebp - 0x54c], eax
cmp eax, esi
mov byte [ebp - 4], 1
je 0x1002cfdb
push eax
call fcn.1002cc45
jmp 0x1002cfdd
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
mov dword [eax + 0x28], ecx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 8]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x1c]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x34], ecx
cmp dword [ebx + 0x2c], esi
je 0x1002d242
cmp dword [ebx + 0x20], esi
jne 0x1002d242
push 0x80
call fcn.100515d4
pop ecx
mov dword [ebp - 0x54c], eax
cmp eax, esi
mov byte [ebp - 4], 2
je 0x1002d03b
push eax
call fcn.1002cc9b
jmp 0x1002d03d
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x20], eax
mov dword [eax + 0x28], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 8]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 0x24], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebx + 0x14]
push 0x118
mov dword [eax + 0x34], ecx
lea eax, [ebp - 0x544]
push esi
push eax
call fcn.10051de0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x548]
push eax
mov dword [ebp - 0x548], 0x11c
call edi
cmp eax, esi
jne 0x1002d0b1
lea eax, [ebp - 0x548]
push eax
mov dword [ebp - 0x548], 0x114
call edi
cmp eax, esi
je 0x1002d0eb
mov eax, dword [ebx + 0x20]
mov cx, word [ebp - 0x544]
mov word [eax + 0x38], cx
mov eax, dword [ebx + 0x20]
mov cx, word [ebp - 0x540]
mov word [eax + 0x3a], cx
mov eax, dword [ebx + 0x20]
mov cx, word [ebp - 0x434]
mov word [eax + 0x3e], cx
mov eax, dword [ebx + 0x20]
mov cx, word [ebp - 0x53c]
mov word [eax + 0x3c], cx
jmp 0x1002d107
mov eax, dword [ebx + 0x20]
mov word [eax + 0x38], si
mov eax, dword [ebx + 0x20]
mov word [eax + 0x3a], si
mov eax, dword [ebx + 0x20]
mov word [eax + 0x3e], si
mov eax, dword [ebx + 0x20]
mov word [eax + 0x3c], si
push 8
pop ecx
push str.GetNativeSystemInfo
xor eax, eax
mov dword [ebp - 0x58c], esi
lea edi, [ebp - 0x588]
push 0x10084bb4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1002d140
lea ecx, [ebp - 0x58c]
push ecx
call eax
jmp 0x1002d14d
lea eax, [ebp - 0x58c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebx + 0x20]
mov cx, word [ebp - 0x58c]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebx + 0x20]
mov word [ecx + 0x42], ax
lea eax, [ebp - 0x550]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
mov dword [ebp - 0x564], esi
mov dword [ebp - 0x550], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002d233
push 0x410
lea eax, [ebp - 0x426]
push esi
push eax
mov word [ebp - 0x428], si
call fcn.10051de0
add esp, 0xc
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x54c]
push eax
push esi
push str.Version
push dword [ebp - 0x550]
mov dword [ebp - 0x554], 0x208
mov dword [ebp - 0x54c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002d227
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x5a8]
call fcn.1000189d
lea ecx, [ebp - 0x5a8]
call fcn.1002d33d
push esi
push 1
lea esi, [ebp - 0x5a8]
mov edi, eax
mov dword [ebp - 0x564], edx
call fcn.10001f1e
xor esi, esi
push dword [ebp - 0x550]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0x564]
mov dword [eax + 0x48], edi
mov dword [eax + 0x4c], ecx
push dword [ebp - 0x55c]
xor eax, eax
cmp dword [ebx + 0x1c], esi
setne al
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.1005895b
ret