Function at 0x401180
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x3b0
mov eax, dword [esp + 0x3b4]
push ebx
push ebp
push esi
lea ecx, [esp + 0x24]
push edi
xor ebx, ebx
push ecx
mov dword [eax], ebx
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4011b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b0
ret
cmp dword [esp + 0x38], 2
je 0x4011d1
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionFonts
jmp 0x4011e2
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4011fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b0
ret
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401241
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b0
ret
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc edx
push edx
push 8
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x401278
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b0
ret
mov ecx, dword [esp + 0x1c]
push ecx
push 8
call ebp
push eax
call esi
mov esi, eax
test esi, esi
jne 0x4012ad
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3b0
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push esi
push eax
lea ecx, [esp + 0x20]
push 0
push ecx
push edi
push 0
push edx
call ebp
test eax, eax
jne 0x40138f
lea eax, [esp + 0x2c0]
lea ecx, [esp + 0x1c0]
push eax
push ecx
push 0
push 0
push esi
call fcn.00403320
add esp, 0x14
lea edx, [esp + 0x1c0]
lea eax, [esp + 0xbc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x2c0]
lea edx, [esp + 0xbc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x3c8]
lea eax, [esp + 0xbc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401382
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc ebx
inc edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edx
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], eax
push esi
push edx
lea eax, [esp + 0x20]
push 0
push eax
push edi
push ebx
push ecx
call ebp
test eax, eax
je 0x4012e8
jmp 0x40138f
mov edx, dword [esp + 0x3c4]
mov dword [edx], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3b0
ret