Function at 0x419ab0
Capabilities:
Check if file exists
Create directory
Get file attributes
Hide graphical window
Inspect load icon resource
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
mov eax, dword [0x482230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x416fd0
mov dword [ebp - 0x67c], ebx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.0041a760
or eax, 0xffffffff
mov byte [0x4860e8], 0
mov ecx, 0x80
mov dword [0x486368], 0
mov edi, 0x486168
mov dword [0x486770], 0
rep stosd dword es:[edi], eax
mov eax, 0xffff
mov dword [0x486774], 0
mov ecx, 0x100
mov edi, 0x486370
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x100
mov edi, 0x486778
rep stosd dword es:[edi], eax
call fcn.004136a0
mov ecx, dword [0x4839a4]
mov edx, 0x4834c8
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x419b44
push 0x104
mov dword [0x4864d8], 0x21
mov dword [0x4864bc], 0x22
mov dword [0x4864d0], 0x23
mov dword [0x48647c], 0x24
mov dword [0x486488], 0x25
mov dword [0x4864c8], 0x26
mov dword [0x48648c], 0x27
mov dword [0x486478], 0x28
mov dword [0x4864a8], 0x29
mov dword [0x486498], 0x2a
mov dword [0x4864a4], 0x2b
mov dword [0x48649c], 0x2c
mov dword [0x486660], 0x2d
mov dword [0x4864a0], 0x2e
mov dword [0x486668], 0x2f
mov dword [0x48666c], 0x30
mov dword [0x486658], 0x31
mov dword [0x4866f8], 0x32
mov dword [0x4866e4], 0x33
call fcn.00428275
push 0x104
mov dword [0x48636c], eax
call fcn.00428275
add esp, 8
mov dword [0x486b78], eax
push pe_nt_image_headers32
push 0x485da8
push 2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x471424
push ebx
mov dword [ebp - 0x6c8], 0x30
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0x4178a0
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x6b8], 0
mov dword [0x485d58], ebx
mov dword [ebp - 0x6b4], ebx
call esi
push 0x471424
push dword [0x485d58]
mov dword [ebp - 0x6b0], eax
call esi
push str.CURSOR
push dword [0x485d58]
mov dword [ebp - 0x69c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x6ac], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 0x6a4], str.ORGANYAMENU
mov dword [ebp - 0x6a0], 0x485da8
call edi
mov esi, eax
push 0x15
add esi, esi
call edi
add eax, esi
add eax, dword [0x482198]
push 0x21
mov dword [0x485edc], eax
call edi
mov esi, eax
push 0x14
add esi, esi
call edi
push 0xf
add esi, eax
call edi
push 4
add esi, eax
call edi
add eax, esi
add eax, dword [0x48219c]
mov dword [0x4860e0], eax
lea eax, [ebp - 0x6c8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x41a742
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xff
push 0x485ee0
push ebx
call esi
push 0x485ee0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x485ee0
sub ecx, 4
add eax, ecx
push str..exe
push eax
mov dword [0x485ed8], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str..ini
test eax, eax
jne 0x419d93
push dword [0x485ed8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x419d9e
push 0x485ee0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x485ee0
push 0x10
push str.NoteWidth
push str.WINDOW
call ebx
cmp eax, 0x10
jle 0x419dc3
mov eax, 0x10
jmp 0x419dcd
mov ecx, 4
cmp eax, ecx
cmovl eax, ecx
push 0x485ee0
push 0
push str.left
push str.WINDOW
mov dword [0x4852a8], eax
call ebx
push 0x485ee0
push 0
push 0x47145c
push str.WINDOW
mov dword [0x485ec8], eax
call ebx
push 0x485ee0
push 0x230
push str.right
push str.WINDOW
mov dword [0x485ecc], eax
call ebx
push 0x485ee0
push 0x230
push str.bottom
push str.WINDOW
mov dword [0x485ed0], eax
call ebx
push 0x485ee0
push 0x14
push str.left
push str.COMMONDIALOG
mov dword [0x485ed4], eax
call ebx
push 0x485ee0
push 0x14
push 0x47145c
push str.COMMONDIALOG
mov dword [0x483014], eax
call ebx
push 0x485ee0
push 0x226
push str.right
push str.COMMONDIALOG
mov dword [0x483018], eax
call ebx
push 0x485ee0
push 0x230
push str.bottom
push str.COMMONDIALOG
mov dword [0x48301c], eax
call ebx
push 0x485ee0
push 1
push str.Repeat
push str.STANDARD_MIDI_EXPORT
mov dword [0x483020], eax
call ebx
mov dword [0x483028], eax
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [0x4714c0]
movups xmm0, xmmword [str._C__AUTHOR_xxxxx_]
mov word [ebp - 0x64], ax
mov al, byte [0x4714c2]
mov byte [ebp - 0x62], al
movzx eax, word [ebp - 0x5a8]
push eax
movups xmmword [ebp - 0x84], xmm0
lea eax, [ebp - 0x72]
movups xmm0, xmmword [0x4714b0]
push 0x4705dc
push eax
movups xmmword [ebp - 0x74], xmm0
call fcn.004096c0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x84]
add esp, 0xc
push 0x485ee0
push 0xff
push 0x4836d0
push eax
push str.Author
push str.STANDARD_MIDI_EXPORT
call edi
push 0x485ee0
push 0xff
push 0x4835d0
push dword [0x483960]
push str.Title
push str.STANDARD_MIDI_EXPORT
call edi
push 0
push dword [0x485d58]
mov dword [0x4837d0], 0xffffffff
push 0
push 0
push dword [0x485ed4]
mov dword [0x4837d4], 0xffffffff
push dword [0x485ed0]
push dword [0x485ecc]
push dword [0x485ec8]
push 0xcf0000
push 0x4714d4
push 0x485da8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x485d5c], eax
test eax, eax
je 0x41a742
push 0xa4
push dword [ebp - 0x67c]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x67c], eax
lea eax, [ebp - 0x598]
push 0x104
push eax
push 0
call esi
push 0
push 0
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x598]
push eax
call fcn.00449a56
lea edx, [ebp - 0x28c]
add esp, 0x14
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41a000
lea edi, [ebp - 0x390]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a010
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x390]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x495], al
test al, al
jne 0x41a030
lea ecx, [ebp - 0x494]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x41a050
mov eax, dword [str.themes]
mov dword [ecx], eax
mov ax, word [0x4705a4]
mov word [ecx + 4], ax
mov al, byte [0x4705a6]
mov byte [ecx + 6], al
lea eax, [ebp - 0x494]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x485ee0
push 0x104
push dword [0x486b78]
push 0
push str.CurrentThemePath
push str.WINDOW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x486b78]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a0b0
sub ecx, esi
je 0x41a0d3
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a0cb
test al, 0x10
jne 0x41a0d3
mov eax, dword [0x486b78]
mov byte [eax], 0
push dword [0x485d5c]
call fcn.0040bae0
push 0
push 0x4713c0
call fcn.0040aee0
push 1
push 0x4713c8
call fcn.0040aee0
push 2
push 0x4713d0
call fcn.0040aee0
push 3
push 0x4713d8
call fcn.0040aee0
call fcn.0040aff0
push dword [0x485d5c]
call fcn.00415c20
add esp, 0x28
call fcn.00415f40
mov ecx, 0x485d68
call fcn.004153d0
mov esi, dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push 0x4055f0
push dword [0x485d5c]
push 0x4714f4
push dword [0x485d58]
call esi
push 0
push 0x409b20
push dword [0x485d5c]
mov dword [0x485d98], eax
push str.TRACK
push dword [0x485d58]
call esi
push 0
push 0x404430
push dword [0x485d5c]
mov dword [0x485d9c], eax
push str.COPYBD
push dword [0x485d58]
call esi
push 0x485ee0
push 0xc8
push str.left
push str.TRACK
mov dword [0x485da0], eax
call ebx
push 0x485ee0
push 0xc8
push 0x47145c
push str.TRACK
mov dword [0x485ec8], eax
call ebx
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x15
push 0
push 0
push eax
push dword [0x485ec8]
mov dword [0x485ecc], eax
push 0
push dword [0x485d9c]
call esi
push 0x485ee0
push pe_nt_image_headers32
push str.left
push str.PLAYWINDOW
call ebx
push 0x485ee0
push pe_nt_image_headers32
push 0x47145c
push str.PLAYWINDOW
mov dword [0x485ec8], eax
call ebx
push 0x15
push 0
push 0
push eax
push dword [0x485ec8]
mov dword [0x485ecc], eax
push 0
push dword [0x485d98]
call esi
push 0x485ee0
push 0xb4
push str.left
push str.COPYWINDOW
call ebx
push 0x485ee0
push 0x17c
push 0x47145c
push str.COPYWINDOW
mov dword [0x485ec8], eax
call ebx
push 0x15
push 0
push 0
push eax
push dword [0x485ec8]
mov dword [0x485ecc], eax
push 0
push dword [0x485da0]
call esi
push 0x485ee0
push 1
push str.show
push str.COPYWINDOW
call ebx
mov dword [0x482c48], eax
test eax, eax
jne 0x41a2a9
push eax
push dword [0x485da0]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x485ee0
push 0
push str.autosave
push str.INIT_PAN_VOL
call ebx
push eax
mov dword [0x482e90], eax
call fcn.00413910
add esp, 4
mov ecx, 0x486b80
call fcn.0040d410
cmp dword [0x4852a8], 4
mov esi, dword [sym.imp.USER32.dll_GetMenu]
jne 0x41a2e7
push 1
jmp 0x41a2e9
push 0
push 0x9d5b
push dword [0x485d5c]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
cmp dword [0x4852a8], 0x10
jne 0x41a30c
push 1
jmp 0x41a30e
push 0
push 0x9d5a
push dword [0x485d5c]
call esi
push eax
call edi
call fcn.00414470
push 0x485ee0
push 0
push str.GridMode
push str.WINDOW
call ebx
push eax
call fcn.00413ad0
add esp, 4
push 0x485ee0
push 0
push str.AlwaysCurrent
push str.WINDOW
call ebx
push eax
call fcn.00413c90
add esp, 4
push 0x485ee0
push 1
push str.DrawDouble
push str.WINDOW
call ebx
push eax
call fcn.004139c0
add esp, 4
push 0x485ee0
push 1
push str.DragMode
push str.WINDOW
call ebx
push eax
call fcn.00413970
add esp, 4
push 0x485ee0
push 1
push str.EnablePlaying
push str.WINDOW
call ebx
push eax
call fcn.00413a10
add esp, 4
push 0x485ee0
push 1
push str.QuitMessage
push str.WINDOW
call ebx
push eax
call fcn.00413a70
add esp, 4
push 0x485ee0
push 1
push str.SlideOverlapNoteMode
push str.WINDOW
call ebx
push eax
call fcn.00413cf0
add esp, 4
push 0x485ee0
push 1
push str.EnablePressNoteStretch
push str.WINDOW
call ebx
push eax
call fcn.00413be0
add esp, 4
push 0x485ee0
push 1
push str.NoteEnlarge
push str.WINDOW
call ebx
push eax
call fcn.00413b90
add esp, 4
push 0x485ee0
push 0
push str.Metronome
push str.WINDOW
call ebx
push eax
call fcn.00413b30
add esp, 4
push 0x485ee0
push 1
push str.SmoothScroll
push str.WINDOW
call ebx
push eax
call fcn.00413c30
add esp, 4
mov ecx, 0x486b80
call fcn.0040bb60
push 0x485ee0
push 0
push str.WindowState
push str.WINDOW
call ebx
cmp eax, 1
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x41a482
push 3
jmp 0x41a485
push dword [ebp + 0x14]
push dword [0x485d5c]
call eax
push dword [0x485d5c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [0x485d5c]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov byte [0x485d65], 0
call fcn.00417710
call fcn.00413ef0
call fcn.00413ea0
push 0
lea eax, [ebp - 0x678]
mov ecx, 0x486b80
push eax
call fcn.0040d310
movzx eax, word [ebp - 0x678]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 1
push eax
push 0x3ec
push dword [0x485d9c]
call esi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x470378
push 0x3ed
push dword [0x485d9c]
call edi
mov ecx, dword [ebp + 0x10]
mov ah, byte [ecx]
test ah, ah
je 0x41a62a
lea edx, [ebp - 0x28c]
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x41a520
xor ebx, ebx
lea ecx, [ebp - 0x28c]
cmp ah, 0x22
lea edx, [ebp - 0x188]
sete bl
add ecx, ebx
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x41a545
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a560
sub ecx, edx
sub ecx, ebx
cmp ecx, 0x104
jae 0x41a757
mov byte [ebp + ecx - 0x188], al
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x486b80
call fcn.00411630
test eax, eax
jne 0x41a62a
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x188]
lea ecx, [ecx + 1]
mov byte [ecx + 0x4834c7], al
test al, al
jne 0x41a5a0
mov ecx, 0x486b80
call fcn.00411770
cmp eax, 1
jne 0x41a71b
mov byte [0x485d65], 0
call fcn.00417710
push 0
lea eax, [ebp - 0x678]
mov byte [0x4821a4], 0
push eax
mov ecx, 0x486b80
call fcn.0040d310
movzx eax, word [ebp - 0x678]
push 1
push eax
push 0x3ec
push dword [0x485d9c]
call esi
push 0x470378
push 0x3ed
push dword [0x485d9c]
call edi
call fcn.00404400
call fcn.00402910
mov ecx, 0x486b80
call fcn.0040bb60
call fcn.0041a7b0
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x698]
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x41a6f6
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x67c]
push dword [0x485d5c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x41a6df
lea eax, [ebp - 0x698]
push eax
push dword [0x485d98]
call esi
test eax, eax
jne 0x41a6df
lea eax, [ebp - 0x698]
push eax
push dword [0x485d9c]
call esi
test eax, eax
jne 0x41a6df
lea eax, [ebp - 0x698]
push eax
push dword [0x485da0]
call esi
test eax, eax
jne 0x41a6df
lea eax, [ebp - 0x698]
push eax
push dword [0x485da4]
call esi
test eax, eax
jne 0x41a6df
lea eax, [ebp - 0x698]
push eax
call ebx
lea eax, [ebp - 0x698]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x698]
push eax
call edi
test eax, eax
jne 0x41a660
push dword [ebp - 0x67c]
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [ebp - 0x690]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aab7
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4839a4]
mov edx, 0x4834c8
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x41a730
jmp 0x41a62a
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aab7
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041abfe
int3