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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10024b05
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x1002b134]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push esi
push edi
mov eax, dword [0x1002b134]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x90]
push eax
lea ecx, [esp + 0x28]
call fcn.10002990
xor ebx, ebx
mov dword [esp + 0x5b8], ebx
cmp dword [esi + 0x2c], ebx
je 0x10007dc1
cmp dword [esi + 0x1c], ebx
jne 0x10007b8f
push 0x38
call fcn.1000c0f3
pop ecx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov byte [esp + 0x5b8], 1
je 0x10007b5f
push eax
call fcn.1000723b
jmp 0x10007b61
xor eax, eax
mov byte [esp + 0x5b8], bl
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x24], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x34], ecx
cmp dword [esi + 0x2c], ebx
je 0x10007dc1
cmp dword [esi + 0x20], ebx
jne 0x10007dc1
push 0x80
call fcn.1000c0f3
pop ecx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov byte [esp + 0x5b8], 2
je 0x10007bc4
push eax
call fcn.1000728e
jmp 0x10007bc6
xor eax, eax
mov byte [esp + 0x5b8], bl
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [eax + 0x28], ecx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x20]
mov dword [ecx + 0x20], edi
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x24], eax
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x20]
mov dword [eax + 0x30], edi
mov ecx, dword [esi + 0x14]
push str.RtlGetVersion
push str.ntdll.dll
mov dword [eax + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov edi, eax
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.1000c060
sub esp, 0xfffffff4
cmp edi, ebx
mov dword [esp + 0x6c], 0x11c
je 0x10007c37
lea eax, [esp + 0x6c]
push eax
call edi
or eax, eax
je 0x10007c5b
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x6c]
push eax
call edi
cmp eax, ebx
jne 0x10007c5b
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x70], 0x114
call edi
cmp eax, ebx
je 0x10007c90
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x70]
mov word [eax + 0x38], cx
mov cx, word [esp + 0x74]
mov eax, dword [esi + 0x20]
mov word [eax + 0x3a], cx
mov cx, word [esp + 0x180]
mov eax, dword [esi + 0x20]
mov word [eax + 0x3e], cx
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x78]
mov word [eax + 0x3c], cx
jmp 0x10007cac
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x38], bx
mov edi, dword [esi + 0x20]
mov word [edi + 0x3a], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x3e], bx
mov eax, dword [esi + 0x20]
mov word [eax + 0x3c], bx
push 8
pop ecx
push str.GetNativeSystemInfo
xor eax, eax
mov dword [esp + 0x30], ebx
lea edi, [esp + 0x34]
push 0x10027bb0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10007cdf
lea ecx, [esp + 0x2c]
push ecx
call eax
jmp 0x10007cea
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x20]
mov cx, word [esp + 0x2c]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x42], ax
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
xor edi, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or eax, eax
jne 0x10007db4
push 0x410
lea eax, [esp + 0x192]
push ebx
push eax
mov word [esp + 0x198], bx
call fcn.1000c060
sub esp, 0xfffffff4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
push str.Version
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007daa
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x54]
call fcn.10001460
lea eax, [esp + 0x50]
push eax
call fcn.10007ec9
mov dword [esp + 0x20], edx
mov edi, eax
lea ecx, [esp + 0x50]
call fcn.100014a0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x20]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x48], edi
mov dword [ecx + 0x4c], eax
xor eax, eax
lea ecx, [esp + 0x24]
cmp dword [esi + 0x1c], ebx
setne al
mov esi, eax
call fcn.100029c0
mov edi, dword [esp + 0x5b0]
mov dword fs:[0], edi
mov eax, esi
pop esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.1000bda4
mov esp, ebp
pop ebp
ret