Function at 0x401000
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Persist via default file association registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str..book
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40106d
lea eax, [ebp - 0x134]
push str.EBPlay.Document
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x4211cc
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.EBPlay.Document
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4011e0
lea eax, [ebp - 0x134]
push str.EBPlay.Document
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x4211cc
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.EBPlay.DocumentDefaultIcon
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x134]
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x134]
push 0x420244
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x4211cc
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.EBPlay.DocumentShellopen
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x134]
push str.Open_Book
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x4211cc
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push str.EBPlay.DocumentShellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x134]
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x134]
push 0x4201f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x4211cc
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
jae 0x40120b
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
jmp 0x401210
push str.SOFTWAREMicrosoftWindowsCurrentVersionFonts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40126f
lea eax, [ebp - 0x134]
push str.CA613.fon
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push 0x420178
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x134]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push str.CA613_sys
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.CA613FON
push 0x90
push ebx
call edi
push eax
mov dword [ebp - 0x10], eax
push dword [0x4210b8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push dword [esi + 4]
call fcn.0040fd1b
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
push dword [0x4210b8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
call fcn.0040ba47
add esp, 0xc
mov esi, str.ca613fon.tmp
mov dword [ebp - 0x10], eax
push ebx
push 0x20
push 2
push ebx
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40153a
lea ecx, [ebp - 0x18]
push ebx
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.0040fd10
lea eax, [ebp - 0x374]
mov dword [esp], 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x374]
push str._fontsca613.fon
push eax
call fcn.0040fc30
pop ecx
lea eax, [ebp - 0x374]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetOEMCP]
call esi
cmp eax, 0x3b6
jne 0x4013bf
push str.MS_Song__TrueType_
push ebx
push ebx
push ebx
push ebx
push 0x86
push ebx
push 1
push 1
push 0x2bc
push ebx
push ebx
push ebx
push 0x10
call dword [sym.imp.GDI32.dll_CreateFontA]
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x14], eax
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp byte [ebp - 0x159], 0x86
je 0x4013b6
push 0x30
push ebx
push 0x420114
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x401501
cmp byte [eax], bl
je 0x401501
push eax
call fcn.0040b622
cmp eax, 2
pop ecx
je 0x401414
call esi
push dword [ebp + 0x10]
cmp eax, 0x3b6
jne 0x4013f1
push str.__s__n_r
jmp 0x4013f6
push 0x4200dc
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x270]
push 0x40
push ebx
jmp 0x401532
push 0x20
push ebx
push 0x421080
mov dword [0x4210a0], ebx
call fcn.0040fbc0
add esp, 0xc
push dword [ebp + 0x10]
push 0x4210c0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.00401813
push str.CA613BMP
push 0x8c
push ebx
call edi
mov edi, eax
push edi
push dword [0x4210b8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x14c08
mov esi, eax
call fcn.0040fd1b
pop ecx
mov dword [0x4210a4], eax
push edi
push dword [0x4210b8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x4210a4]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
call fcn.0040ba47
push dword [ebp + 8]
call fcn.00401543
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004015a4
add esp, 0x18
test eax, eax
je 0x40153a
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call esi
test eax, eax
je 0x4014e0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
jmp 0x4014bd
mov eax, dword [0x4210a0]
cmp eax, ebx
je 0x4014f0
push eax
call fcn.0040fd10
pop ecx
push dword [0x4210a4]
call fcn.0040fd10
mov eax, dword [ebp - 0x2c]
pop ecx
jmp 0x40153c
call esi
cmp eax, 0x3b6
jne 0x401511
push 0x420094
jmp 0x401516
push 0x420058
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x270]
pop ecx
push 0x40
push 0x42004c
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10