Function at 0x462650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
cmp byte [0x50b4d5], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
je 0x4627be
mov ecx, dword [0x50b3a4]
call fcn.0045e8c0
call fcn.004ad0f0
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 0x46294b
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x4e]
push eax
mov word [ebp - 0x50], dx
call fcn.004b03e0
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 0x46294b
lea esp, [esp]
mov eax, dword [ebp - 4]
inc esi
mov dword [ebp - 0x10], esi
cmp eax, 0x1f
jbe 0x462711
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 0x462729
mov eax, 0xfe
xor edx, edx
mov word [ebp + eax*2 - 0x250], dx
mov ax, word [ebp - 0x250]
test ax, ax
je 0x46277c
lea esi, [ebp - 0x24e]
cmp ax, 0x2a
je 0x462751
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 0x46277c
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 0x462700
jmp 0x46294b
mov eax, dword [0x50b3a4]
xor esi, esi
xor bl, bl
mov dword [eax + 0xf320c], 3
cmp edi, esi
je 0x462908
push 0x2a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x462908
mov dword [ebp + 8], esi
call fcn.004ad0f0
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 0x462908
push 0x1fe
push eax
lea edx, [ebp - 0x250]
push edx
call fcn.004b03e0
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 0x4628fa
mov edi, edi
inc esi
cmp dword [ebp - 0xc], 4
jne 0x4628a7
cmp word [ebp - 0x450], 0
je 0x4628a7
cmp word [ebp - 0x250], 0
je 0x4628a7
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.004b03e0
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 0x462870
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x462928
push 0
call dword [sym.imp.USER32.dll_GetDC]
push edi
push 0x45ed90
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 [0x50b3a0]
add eax, 0xf00
push eax
call fcn.00451640
add esp, 4
test al, al
je 0x46294b
mov eax, dword [0x50b3a4]
and dword [eax + 0xf320c], 0xfffffffd
test edi, edi
je 0x46298a
mov eax, dword [0x50b3a0]
add eax, 0xf00
push eax
push 0xffffffffffffffff
push 0x14d
push 0x6bf
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
test eax, eax
jge 0x46298a
mov ecx, dword [0x50b3a0]
add ecx, 0xf00
push ecx
push 0x6bf
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [0x50b3a4]
xor eax, eax
cmp dword [edx + 0xf320c], eax
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret