Function at 0x46f060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
cmp byte [0x52fe55], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
je 0x46f1ce
mov ecx, dword [0x52fe34]
push 0
call fcn.0046b3d0
call fcn.004c6070
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [ebp - 8]
push ecx
or eax, 0x20019
push eax
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionConsoleTrueTypeFont
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f35c
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x4e]
push eax
mov word [ebp - 0x50], dx
call fcn.004c9b50
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
xor esi, esi
push esi
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x50]
push edx
push esi
push eax
mov dword [ebp - 4], 0x20
mov dword [ebp + 8], 0x1fc
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x46f35c
mov edi, edi
mov eax, dword [ebp - 4]
inc esi
mov dword [ebp - 0x10], esi
cmp eax, 0x1f
jbe 0x46f121
mov eax, 0x1f
xor ecx, ecx
mov word [ebp + eax*2 - 0x50], cx
mov eax, dword [ebp + 8]
shr eax, 1
cmp eax, 0xfe
jbe 0x46f139
mov eax, 0xfe
xor edx, edx
mov word [ebp + eax*2 - 0x250], dx
mov ax, word [ebp - 0x250]
test ax, ax
je 0x46f18c
lea esi, [ebp - 0x24e]
cmp ax, 0x2a
je 0x46f161
lea esi, [ebp - 0x250]
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push esi
push 0xffffffffffffffff
push 0x158
push 0x6bf
push edi
call ebx
cmp eax, 0xffffffff
jne 0x46f18c
push esi
push 0
push 0x143
push 0x6bf
push edi
call ebx
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x50]
push ecx
push esi
push edx
mov dword [ebp - 4], 0x20
mov dword [ebp + 8], 0x1fc
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x46f110
jmp 0x46f35c
mov eax, dword [0x52fe34]
xor esi, esi
xor bl, bl
mov dword [eax + 0xf3034], 3
cmp edi, esi
je 0x46f319
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x46f319
mov dword [ebp + 8], esi
call fcn.004c6070
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [ebp + 8]
push ecx
or eax, 0x20019
push eax
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionConsoleTrueTypeFont
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46f319
push 0x1fe
push eax
lea edx, [ebp - 0x250]
push edx
call fcn.004c9b50
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 8]
push esi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x450]
push ecx
push esi
push edx
mov dword [ebp - 8], 0xff
mov dword [ebp - 4], 0x1fc
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x46f30b
inc esi
cmp dword [ebp - 0xc], 4
jne 0x46f2b8
cmp word [ebp - 0x450], 0
je 0x46f2b8
cmp word [ebp - 0x250], 0
je 0x46f2b8
lea eax, [ebp - 0x250]
push eax
push 0
push 0x143
push 0x6bf
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov bl, 1
push 0x1fe
lea ecx, [ebp - 0x250]
push 0
push ecx
mov dword [ebp - 8], 0xff
mov dword [ebp - 4], 0x1fe
call fcn.004c9b50
add esp, 0xc
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x450]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x46f281
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x46f339
push 0
call dword [sym.imp.USER32.dll_GetDC]
push edi
push 0x46b980
mov esi, eax
push 0
push esi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x52fe30]
add eax, 0xf00
push eax
call fcn.0045d170
add esp, 4
test al, al
je 0x46f35c
mov eax, dword [0x52fe34]
and dword [eax + 0xf3034], 0xfffffffd
test edi, edi
je 0x46f39b
mov eax, dword [0x52fe30]
add eax, 0xf00
push eax
push 0xffffffffffffffff
push 0x14d
push 0x6bf
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
test eax, eax
jge 0x46f39b
mov ecx, dword [0x52fe30]
add ecx, 0xf00
push ecx
push 0x6bf
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [0x52fe34]
xor eax, eax
cmp dword [edx + 0xf3034], eax
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret