Function at 0x401570
Capabilities:
Create process on windows
Delete file
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x416ece
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x60]
call fcn.00412edd
xor edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x4bc], edi
call fcn.00412edd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4bc], 1
call fcn.00412ab6
mov eax, dword [0x41e484]
mov dword [esp + 0x2c], eax
mov esi, vtable.CFileException.0
or ebx, 0xffffffff
push edi
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c0], 3
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call fcn.0040fbec
lea ecx, [esp + 0x30]
mov byte [esp + 0x4bc], 4
call fcn.00412ab6
mov ecx, dword [0x41e484]
mov dword [esp + 0x40], ecx
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 6
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call fcn.0040fbec
lea ecx, [esp + 0x88]
mov byte [esp + 0x4bc], 7
call fcn.004027af
mov edx, dword [0x41e484]
mov dword [esp + 0x18], edx
lea edi, [esp + 0x1a8]
or ecx, 0xffffffff
xor eax, eax
mov bl, 9
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x48]
push eax
push 1
not ecx
push 0
dec ecx
push str.SoftwareAkruti
push 0x80000002
mov byte [esp + 0x4d0], bl
mov dword [esp + 0x58], ecx
call edi
test eax, eax
jne 0x401ce0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x1a8]
push ecx
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x78]
push edx
push eax
push 0
push str.Directory
push ecx
call esi
lea edx, [esp + 0x44]
lea eax, [esp + 0x3b0]
push edx
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x78]
push eax
push ecx
push 0
push str.Count
push edx
call esi
lea eax, [esp + 0x4c]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionFonts
push 0x80000002
call edi
test eax, eax
je 0x40175a
lea ecx, [esp + 0x4c]
push ecx
push 1
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
call edi
test eax, eax
je 0x40175a
push 0
push 0
push str.Error_in_Registry__Font_
call fcn.00414b72
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 8
call fcn.0040faaf
lea ecx, [esp + 0x88]
mov byte [esp + 0x4bc], 7
call fcn.004027ec
mov esi, vtable.CFileException.0
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4bc], 0xc
call fcn.0040faaf
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4bc], 0xd
jmp 0x401d34
lea edx, [esp + 0x2ac]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x3b0]
push ecx
call fcn.0040347f
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
add esp, 4
mov eax, edx
lea ecx, [esp + 0x1c]
shr eax, 0x1f
push ecx
add edx, eax
push 0
push str.Reference.dat
lea ecx, [esp + 0x6c]
mov dword [ebp + 0x214], edx
call fcn.00412fef
test eax, eax
jne 0x401816
push eax
push eax
push str.Not_found_Reference.dat
call fcn.00414b72
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 8
call fcn.0040faaf
lea ecx, [esp + 0x88]
mov byte [esp + 0x4bc], 7
call fcn.004027ec
mov esi, vtable.CFileException.0
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4bc], 0xe
call fcn.0040faaf
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4bc], 0xf
jmp 0x401d34
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
lea edx, [esp + 0xa4]
push 0x104
push edx
lea ecx, [esp + 0x68]
call fcn.0041310c
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x20c]
test eax, eax
je 0x401950
lea esi, [ebp + 0x208]
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call fcn.0040fbec
push 0x5c
mov ecx, esi
mov dword [ebp + 0x20c], 0
call fcn.0040de76
push eax
lea ecx, [esp + 0x84]
push 0
push ecx
mov ecx, esi
call fcn.0040dde0
push eax
mov ecx, esi
mov byte [esp + 0x4c0], 0x10
call fcn.0040fb9c
lea ecx, [esp + 0x80]
mov byte [esp + 0x4bc], bl
call fcn.0040faaf
mov edx, dword [0x41e484]
mov dword [esp + 0x10], edx
push str.deltree__y
lea eax, [esp + 0x7c]
push esi
push eax
mov byte [esp + 0x4c8], 0x11
call fcn.0040fcb7
push esi
lea ecx, [esp + 0x74]
push eax
push ecx
mov byte [esp + 0x4c8], 0x12
call fcn.0040fc51
push str.Wav
lea edx, [esp + 0x80]
push eax
push edx
mov byte [esp + 0x4c8], 0x13
call fcn.0040fcb7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c0], 0x14
call fcn.0040fb9c
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4bc], 0x13
call fcn.0040faaf
lea ecx, [esp + 0x70]
mov byte [esp + 0x4bc], 0x12
call fcn.0040faaf
lea ecx, [esp + 0x78]
mov byte [esp + 0x4bc], 0x11
call fcn.0040faaf
mov eax, dword [esp + 0x10]
push 0
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x4bc], bl
call fcn.0040faaf
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
call fcn.0040fb1d
lea ecx, [ebp + 0x1c4]
mov byte [esp + 0x4c0], bl
call fcn.004021f0
inc eax
mov ecx, ebp
push eax
call fcn.00401da0
mov ecx, dword [ebp + 0x210]
mov eax, dword [esp + 0x14]
inc ecx
test eax, eax
mov dword [ebp + 0x210], ecx
ja 0x40181c
lea ecx, [esp + 0x60]
call fcn.0041320a
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Font.dat
lea ecx, [esp + 0x5c]
call fcn.00412fef
test eax, eax
jne 0x401a35
push eax
push eax
push str.Not_found_Font.dat
call fcn.00414b72
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 8
call fcn.0040faaf
lea ecx, [esp + 0x88]
mov byte [esp + 0x4bc], 7
call fcn.004027ec
mov esi, vtable.CFileException.0
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4bc], 0x16
call fcn.0040faaf
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4bc], 0x17
jmp 0x401d34
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [esp + 0xa4]
push 0x104
push edx
lea ecx, [esp + 0x58]
call fcn.0041310c
mov ecx, dword [esp + 0x4c]
mov esi, eax
lea eax, [esp + 0xa4]
push eax
push ecx
call edi
test esi, esi
ja 0x401a3b
lea ecx, [esp + 0x50]
call fcn.0041320a
lea esi, [ebp + 0x208]
push str.Spellchk.ini
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040fcb7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.0040faaf
push str.Spell
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0040fcb7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.0040faaf
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
je 0x401b27
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x400
call ebp
push eax
push 0
push 0x1300
call edi
push 0x41e0f8
push str.C:uninstall.err
call fcn.004033e1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401b1c
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.00403362
lea eax, [esp + 0x1b0]
push ebx
push eax
call fcn.00403362
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Samples
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040fcb7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.0040faaf
test bl, bl
je 0x401bab
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0x400
call ebp
push eax
push 0
push 0x1300
call edi
push 0x41e0f8
push str.C:uninstall.err
call fcn.004033e1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401ba0
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call fcn.00403362
lea edx, [esp + 0x1b0]
push ebx
push edx
call fcn.00403362
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Fonts
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0040fcb7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.0040faaf
test bl, bl
je 0x401c2f
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0x400
call ebp
push eax
push 0
push 0x1300
call edi
push 0x41e0f8
push str.C:uninstall.err
call fcn.004033e1
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401c24
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00403362
lea ecx, [esp + 0x1b0]
push ebx
push ecx
call fcn.00403362
add esp, 0x10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401c93
push eax
push eax
lea eax, [esp + 0x18]
push eax
push 0x400
call ebp
push eax
push 0
push 0x1300
call edi
push 0x41e0f8
push str.C:err.txt
call fcn.004033e1
mov esi, eax
add esp, 8
test esi, esi
je 0x401c88
mov ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00403362
lea edx, [esp + 0x1b0]
push esi
push edx
call fcn.00403362
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 8
call fcn.0040faaf
lea ecx, [esp + 0x88]
mov byte [esp + 0x4bc], 7
call fcn.004027ec
mov esi, vtable.CFileException.0
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4bc], 0x18
call fcn.0040faaf
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4bc], 0x19
jmp 0x401d34
push 0
push 0
push str.Error_in_Registry
call fcn.00414b72
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 8
call fcn.0040faaf
lea ecx, [esp + 0x88]
mov byte [esp + 0x4bc], 7
call fcn.004027ec
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4bc], 0xa
call fcn.0040faaf
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4bc], 0xb
lea ecx, [esp + 0x2c]
call fcn.0040faaf
lea ecx, [esp + 0x50]
mov byte [esp + 0x4bc], 0
call fcn.00412f32
lea ecx, [esp + 0x60]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.00412f32
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x4b0
ret