Function at 0x478370
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56089e
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x63d20c]
xor eax, esp
mov dword [esp + 0x8b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63d20c]
xor eax, esp
push eax
lea eax, [esp + 0x8cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8dc]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x44], 2
mov eax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts_
je 0x4783de
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionFonts_
lea edx, [esp + 0x1c]
push edx
push 9
xor ebp, ebp
push ebp
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4785fe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4dc]
push ecx
push ebp
mov ebx, 0x3ff
push edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4785f3
cmp dword [esp + 0x24], 1
jne 0x4785ac
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp eax, 0x3fe
ja 0x4785ac
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
cmp edx, 0x3fe
ja 0x4785ac
mov byte [esp + eax + 0xc8], 0
lea eax, [esp + 0xc8]
mov byte [esp + ecx + 0x4c8], 0
lea edx, [eax + 1]
jmp 0x478490
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478490
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
sub eax, edx
lea esi, [esp + eax + 0xc4]
push str..ttf
push esi
call edi
add esp, 8
test eax, eax
je 0x4784c8
push str..ttc
push esi
call edi
add esp, 8
test eax, eax
jne 0x4785ac
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x8d4], ebp
cmp eax, ebp
je 0x4784f4
lea ecx, [esp + 0xc8]
push ecx
mov ecx, eax
call fcn.0047ab60
mov ebx, eax
jmp 0x4784f6
xor ebx, ebx
cmp dword [esp + 0x14], 3
mov dword [esp + 0x8d4], 0xffffffff
jb 0x47851c
cmp byte [esp + 0xc9], 0x3a
jne 0x47851c
cmp byte [esp + 0xca], 0x5c
je 0x478533
push 0x5c
push ebp
mov ecx, ebx
call fcn.0047af80
mov edx, dword [esp + 0x28]
push edx
push ebp
mov ecx, ebx
call fcn.0047b050
cmp byte [esp + 0x4c8], 0
lea edi, [esp + 0x4c8]
je 0x478593
push 0x5c2070
push edi
call dword [sym.imp.MSVCR90.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x478561
mov byte [esi], 0
add esi, 3
jmp 0x478572
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478566
sub eax, edx
lea esi, [eax + edi]
mov eax, dword [ebx + 4]
push eax
push ebp
push edi
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00474dc0
mov ecx, dword [edi]
push eax
call fcn.00489e40
inc ebp
cmp byte [esi], 0
mov edi, esi
jne 0x478544
test ebx, ebx
je 0x4785a7
mov ecx, ebx
call fcn.0047ac70
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, 0x3ff
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x2c]
push ecx
xor ebp, ebp
push ebp
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x4dc]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x478441
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8b4]
xor ecx, esp
call fcn.00551b9a
add esp, 0x8c4
ret 4