Function at 0x404730
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4059ff
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
mov eax, dword [esp + 0x494]
mov edi, dword [esp + 0x490]
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
push 0x20019
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov eax, dword [eax]
push ebp
push eax
mov ebx, edx
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404874
push edi
lea edx, [esp + 0x20]
push edx
mov edi, str._fonts
call fcn.004033e0
add esp, 8
add esi, 4
push eax
mov ecx, esi
mov dword [esp + 0x48c], ebp
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x488], edi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push esi
lea eax, [esp + 0x38]
push eax
call fcn.00404a10
cmp eax, ebp
mov dword [esp + 0x488], 1
je 0x404801
add eax, 4
jmp 0x404803
xor eax, eax
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.jfutility.dll_public:_void___thiscall_jfFileId::constructor_class_jfString_const__]
mov byte [esp + 0x488], 3
mov eax, dword [esp + 0x40]
cmp eax, ebp
mov dword [esp + 0x34], vtable.fdString.0
je 0x404833
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x38]
call dword [sym.imp.jfutility.dll_public:_void___thiscall_jfString::destructor_void_]
lea ecx, [esp + 0x58]
call dword [sym.imp.jfutility.dll_public:_int___thiscall_jfFileId::ExistsLocally_void_const]
test eax, eax
jne 0x404853
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2121]
push esi
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
lea ecx, [esp + 0x58]
mov dword [esp + 0x488], edi
call dword [sym.imp.jfutility.dll_public:_void___thiscall_jfFileId::destructor_void_]
mov eax, ebx
jmp 0x4049c0
lea ebx, [esi + 4]
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_2121]
push 0x206
lea ecx, [esp + 0x72]
push ebp
push ecx
mov word [esp + 0x78], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x38]
push ebp
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x94]
push edx
mov esi, 0x104
push eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [esp + 0x20], ebp
je 0x4049a6
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x488], 4
xor edi, edi
cmp dword [esp + 0x20], ebp
jbe 0x404991
jmp 0x404917
mov esi, 0x104
lea ecx, [esp + 0x30]
push ecx
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x288]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
cmp esi, ebp
jne 0x404991
mov edx, dword [ebx]
cmp dword [edx - 0xc], ebp
jle 0x404971
push 0x4076a8
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_2121]
add edi, 1
cmp edi, dword [esp + 0x20]
jb 0x404912
lea ecx, [esp + 0x14]
mov dword [esp + 0x488], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
push ebx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov eax, esi
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00404ad0
add esp, 0x478
ret 8