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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1794
call fcn.100049da
push ebx
push esi
push edi
lea edi, [ebp - 0x1794]
mov ecx, 0x5e5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0x10192b70
mov dword [ebp - 0x74], 0x10192b80
mov dword [ebp - 0x80], 0
cmp dword [ebp + 0xc], 0x3c
jge 0x1001f47a
xor eax, eax
jmp 0x1001f801
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000272f
add esp, 0xc
mov esi, esp
push str.GetNativeSystemInfo
mov edi, esp
push 0x101924a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp edi, esp
call fcn.1000318e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x8c], eax
mov esi, esp
push str.RtlGetNtVersionNumbers
mov edi, esp
push 0x10192bd8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp edi, esp
call fcn.1000318e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x8c], 0
je 0x1001f508
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x8c]
cmp esi, esp
call fcn.1000318e
jmp 0x1001f51b
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, esp
call fcn.1000318e
cmp dword [ebp - 0x98], 0
je 0x1001f55e
mov esi, esp
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x38]
push edx
call dword [ebp - 0x98]
cmp esi, esp
call fcn.1000318e
mov eax, dword [ebp - 0x38]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 0x44]
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x8c], 0
je 0x1001f59a
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x8c]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x68], 0x10192be4
movzx eax, word [ebp - 0x2c]
cmp eax, 9
je 0x1001f593
movzx eax, word [ebp - 0x2c]
cmp eax, 6
jne 0x1001f59a
mov dword [ebp - 0x68], 0x10192bf4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1794], eax
cmp dword [ebp - 0x1794], 0x10006
ja 0x1001f5f7
cmp dword [ebp - 0x1794], 0x10006
je 0x1001f641
cmp dword [ebp - 0x1794], 0xa
ja 0x1001f5e9
cmp dword [ebp - 0x1794], 0xa
je 0x1001f65c
cmp dword [ebp - 0x1794], 5
je 0x1001f61d
cmp dword [ebp - 0x1794], 6
je 0x1001f638
jmp 0x1001f663
cmp dword [ebp - 0x1794], 0x10005
je 0x1001f626
jmp 0x1001f663
cmp dword [ebp - 0x1794], 0x20005
je 0x1001f62f
cmp dword [ebp - 0x1794], 0x20006
je 0x1001f64a
cmp dword [ebp - 0x1794], 0x30006
je 0x1001f653
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192c04
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192c3c
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192c70
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192ca8
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192ce0
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192d14
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192d48
jmp 0x1001f663
mov dword [ebp - 0x74], 0x10192d7c
push 0x81
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.1000272f
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x130]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp esi, esp
call fcn.1000318e
test eax, eax
jne 0x1001f6d9
mov dword [ebp - 0x13c], 0x80
mov esi, esp
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x148]
push edx
push 0
push str.ProductName
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, esp
call fcn.1000318e
mov eax, dword [ebp - 0x74]
push eax
call fcn.100028dd
add esp, 4
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x80]
push edx
call fcn.100026da
add esp, 0xc
mov eax, dword [ebp - 0x74]
push eax
call fcn.100028dd
add esp, 4
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
push 0xa
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x50]
and ecx, 0xffff
push ecx
call fcn.100053bc
add esp, 0xc
lea eax, [ebp - 0x184]
push eax
call fcn.100028dd
add esp, 4
push eax
lea ecx, [ebp - 0x184]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x80]
push edx
call fcn.100026da
add esp, 0xc
lea eax, [ebp - 0x184]
push eax
call fcn.100028dd
add esp, 4
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x68]
push eax
call fcn.100028dd
add esp, 4
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x80]
push edx
call fcn.100026da
add esp, 0xc
mov eax, dword [ebp - 0x68]
push eax
call fcn.100028dd
add esp, 4
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x124]
push eax
call fcn.100028dd
add esp, 4
add eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0xc]
jae 0x1001f7fe
cmp dword [ebp + 0xc], 0x1000
jle 0x1001f7c8
push 0xa
push 0x10192df8
mov eax, dword [ebp + 8]
push eax
call fcn.100026da
add esp, 0xc
jmp 0x1001f7fe
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x1000
lea edx, [ebp - 0x118c]
push edx
call fcn.10005975
add esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x118c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100026da
add esp, 0xc
mov eax, dword [ebp - 0x80]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001f834]
call fcn.10004b97
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004d22
add esp, 0x1794
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 8