Function at 0x4013d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x1ac
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c8]
lea eax, [esp + 0x128]
and edi, 0xffff
xor ebx, ebx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x12c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40141d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret
mov esi, dword [esp + 0x1c0]
cmp dword [esi + 4], ebx
jne 0x401436
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret
cmp dword [esp + 0x138], 2
je 0x401452
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionFonts
jmp 0x401462
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40147e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret
mov eax, dword [esi + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push str.__TrueType_
push edx
call ebp
mov ecx, dword [esp + 0x1c4]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4014d4
cmp dword [esp + 0x10], ebx
je 0x4014d4
mov dword [esp + 0x14], 1
cmp dword [esp + 0x14], ebx
jne 0x4015d0
cmp dword [esi + 8], ebx
je 0x4015d0
call fcn.00402320
mov dword [esp + 0x20], eax
xor esi, esi
mov edi, dword [esp + 0x20]
test ebx, ebx
jne 0x401543
mov dx, word [esp + 0x20]
mov eax, esi
and eax, 0xffff
cmp dx, word [eax*2 + 0x409020]
jne 0x401534
mov ecx, dword [esp + 0x1c0]
mov eax, dword [eax*4 + 0x409030]
mov edx, dword [ecx + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401534
mov ebx, 1
mov edi, esi
inc esi
cmp si, 5
jb 0x4014f6
test ebx, ebx
je 0x4015c5
mov ecx, dword [esp + 0x1c0]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x28]
push 0x409168
push ecx
call ebp
and edi, 0xffff
lea eax, [esp + 0x28]
mov edx, dword [edi*4 + 0x409048]
push edx
push eax
call ebp
lea ecx, [esp + 0x28]
push str.__TrueType_
push ecx
call ebp
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c4]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
push eax
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015c5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4015c5
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x1c0]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x401637
mov eax, dword [esi + 0xc]
test eax, eax
je 0x401637
lea edx, [esp + 0x28]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x28]
push str.__TrueType_
push eax
call ebp
mov edx, dword [esp + 0x1c4]
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401637
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401637
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret