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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
mov eax, dword [0x47f228]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x680], ebx
call fcn.00418710
or eax, 0xffffffff
mov byte [0x482e20], 0
mov ecx, 0x80
mov dword [0x4830a0], 0
mov edi, 0x482ea0
mov dword [0x4834a8], 0
rep stosd dword es:[edi], eax
mov eax, 0xffff
mov dword [0x4834ac], 0
mov ecx, 0x100
mov edi, 0x4830a8
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x100
mov edi, 0x4834b0
rep stosd dword es:[edi], eax
call fcn.00411750
mov ecx, dword [0x4806dc]
mov edx, 0x480200
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x417ab0
push 0x104
mov dword [0x483210], 0x21
mov dword [0x4831f4], 0x22
mov dword [0x483208], 0x23
mov dword [0x4831b4], 0x24
mov dword [0x4831c0], 0x25
mov dword [0x483200], 0x26
mov dword [0x4831c4], 0x27
mov dword [0x4831b0], 0x28
mov dword [0x4831e0], 0x29
mov dword [0x4831d0], 0x2a
mov dword [0x4831dc], 0x2b
mov dword [0x4831d4], 0x2c
mov dword [0x483398], 0x2d
mov dword [0x4831d8], 0x2e
mov dword [0x4833a0], 0x2f
mov dword [0x4833a4], 0x30
mov dword [0x483390], 0x31
mov dword [0x483430], 0x32
mov dword [0x48341c], 0x33
call fcn.00426175
push 0x104
mov dword [0x4830a4], eax
call fcn.00426175
add esp, 8
mov dword [0x4838b0], eax
push 0x118
push 0x482ae0
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 0x46e33c
push ebx
mov dword [ebp - 0x6cc], 0x30
mov dword [ebp - 0x6c8], 0
mov dword [ebp - 0x6c4], 0x4158b0
mov dword [ebp - 0x6c0], 0
mov dword [ebp - 0x6bc], 0
mov dword [0x482a90], ebx
mov dword [ebp - 0x6b8], ebx
call esi
push 0x46e33c
push dword [0x482a90]
mov dword [ebp - 0x6b4], eax
call esi
push str.CURSOR
push dword [0x482a90]
mov dword [ebp - 0x6a0], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [ebp - 0x6b0], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6a8], str.ORGANYAMENU
mov dword [ebp - 0x6a4], 0x482ae0
call edi
mov esi, eax
push 0x15
add esi, esi
call edi
add eax, esi
add eax, dword [0x47f190]
push 0x21
mov dword [0x482c14], 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 [0x47f194]
mov dword [0x482e18], eax
lea eax, [ebp - 0x6cc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x4186f0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xff
push 0x482c18
push ebx
call esi
push 0x482c18
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x482c18
sub ecx, 4
add eax, ecx
push str..exe
push eax
mov dword [0x482c10], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str..ini
test eax, eax
jne 0x417cff
push dword [0x482c10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x417d0a
push 0x482c18
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x482c18
push 0x10
push str.NoteWidth
push str.WINDOW
call ebx
cmp eax, 0x10
jle 0x417d2f
mov eax, 0x10
jmp 0x417d39
mov ecx, 4
cmp eax, ecx
cmovl eax, ecx
push 0x482c18
push 0
push str.left
push str.WINDOW
mov dword [0x481fe0], eax
call ebx
push 0x482c18
push 0
push 0x46e37c
push str.WINDOW
mov dword [0x482c00], eax
call ebx
push 0x482c18
push 0x230
push str.right
push str.WINDOW
mov dword [0x482c04], eax
call ebx
push 0x482c18
push 0x230
push str.bottom
push str.WINDOW
mov dword [0x482c08], eax
call ebx
push 0x482c18
push 0x14
push str.left
push str.COMMONDIALOG
mov dword [0x482c0c], eax
call ebx
push 0x482c18
push 0x14
push 0x46e37c
push str.COMMONDIALOG
mov dword [0x47fff4], eax
call ebx
push 0x482c18
push 0x226
push str.right
push str.COMMONDIALOG
mov dword [0x47fff8], eax
call ebx
push 0x482c18
push 0x230
push str.bottom
push str.COMMONDIALOG
mov dword [0x47fffc], eax
call ebx
push 0x482c18
push 1
push str.Repeat
push str.STANDARD_MIDI_EXPORT
mov dword [0x480000], eax
call ebx
mov dword [0x480008], eax
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [0x46e3e0]
movups xmm0, xmmword [str._C__AUTHOR_xxxxx_]
mov word [ebp - 0x64], ax
mov al, byte [0x46e3e2]
mov byte [ebp - 0x62], al
movzx eax, word [ebp - 0x5a8]
push eax
movups xmmword [ebp - 0x84], xmm0
lea eax, [ebp - 0x72]
movups xmm0, xmmword [0x46e3d0]
push 0x46d5bc
push eax
movups xmmword [ebp - 0x74], xmm0
call fcn.00408f10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x84]
add esp, 0xc
push 0x482c18
push 0xff
push 0x480408
push eax
push str.Author
push str.STANDARD_MIDI_EXPORT
call edi
push 0x482c18
push 0xff
push 0x480308
push dword [0x480698]
push str.Title
push str.STANDARD_MIDI_EXPORT
call edi
push 0
push dword [0x482a90]
mov dword [0x480508], 0xffffffff
push 0
push 0
push dword [0x482c0c]
mov dword [0x48050c], 0xffffffff
push dword [0x482c08]
push dword [0x482c04]
push dword [0x482c00]
push 0xcf0000
push 0x46e3f4
push 0x482ae0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x482a94], eax
test eax, eax
je 0x4186f0
push 0xa4
push dword [ebp - 0x680]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x680], 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.0044796a
lea edx, [ebp - 0x28c]
add esp, 0x14
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x417f68
lea edi, [ebp - 0x390]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417f78
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
mov al, byte [ebp + ecx - 0x390]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x495], al
test al, al
jne 0x417f90
lea ecx, [ebp - 0x494]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x417fb0
mov eax, dword [str.themes]
mov dword [ecx], eax
mov ax, word [0x46d588]
mov word [ecx + 4], ax
mov al, byte [0x46d58a]
mov byte [ecx + 6], al
lea eax, [ebp - 0x494]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x482c18
push 0x104
push dword [0x4838b0]
push 0
push str.CurrentThemePath
push str.WINDOW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x4838b0]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418010
sub ecx, esi
je 0x418033
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41802b
test al, 0x10
jne 0x418033
mov eax, dword [0x4838b0]
mov byte [eax], 0
push dword [0x482a94]
call fcn.0040b1b0
push 0
push 0x46e320
call fcn.0040a6c0
push 1
push 0x46e328
call fcn.0040a6c0
push 2
push 0x46e330
call fcn.0040a6c0
push 3
push 0x46e338
call fcn.0040a6c0
push dword [0x482a94]
call fcn.00413ca0
add esp, 0x28
call fcn.00413fd0
mov ecx, 0x482aa0
call fcn.00413450
mov esi, dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push 0x405380
push dword [0x482a94]
push 0x46e414
push dword [0x482a90]
call esi
push 0
push 0x409370
push dword [0x482a94]
mov dword [0x482ad0], eax
push str.TRACK
push dword [0x482a90]
call esi
push 0
push 0x4041f0
push dword [0x482a94]
mov dword [0x482ad4], eax
push str.COPYBD
push dword [0x482a90]
call esi
push 0x482c18
push 0xc8
push str.left
push str.TRACK
mov dword [0x482ad8], eax
call ebx
push 0x482c18
push 0xc8
push 0x46e37c
push str.TRACK
mov dword [0x482c00], eax
call ebx
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x15
push 0
push 0
push eax
push dword [0x482c00]
mov dword [0x482c04], eax
push 0
push dword [0x482ad4]
call esi
push 0x482c18
push 0x118
push str.left
push str.PLAYWINDOW
call ebx
push 0x482c18
push 0x118
push 0x46e37c
push str.PLAYWINDOW
mov dword [0x482c00], eax
call ebx
push 0x15
push 0
push 0
push eax
push dword [0x482c00]
mov dword [0x482c04], eax
push 0
push dword [0x482ad0]
call esi
push 0x482c18
push 0xb4
push str.left
push str.COPYWINDOW
call ebx
push 0x482c18
push 0x17c
push 0x46e37c
push str.COPYWINDOW
mov dword [0x482c00], eax
call ebx
push 0x15
push 0
push 0
push eax
push dword [0x482c00]
mov dword [0x482c04], eax
push 0
push dword [0x482ad8]
call esi
push 0x482c18
push 1
push str.show
push str.COPYWINDOW
call ebx
mov dword [0x47fc38], eax
test eax, eax
jne 0x418204
push eax
push dword [0x482ad8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x482c18
push 0
push str.autosave
push str.INIT_PAN_VOL
call ebx
push eax
mov dword [0x47fe80], eax
call fcn.004119c0
add esp, 4
mov ecx, 0x4838b8
call fcn.0040c800
cmp dword [0x481fe0], 4
mov esi, dword [sym.imp.USER32.dll_GetMenu]
jne 0x418242
push 1
jmp 0x418244
push 0
push 0x9d5b
push dword [0x482a94]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
cmp dword [0x481fe0], 0x10
jne 0x418267
push 1
jmp 0x418269
push 0
push 0x9d5a
push dword [0x482a94]
call esi
push eax
call edi
call fcn.00412520
push 0x482c18
push 0
push str.GridMode
push str.WINDOW
call ebx
push eax
call fcn.00411b80
add esp, 4
push 0x482c18
push 0
push str.AlwaysCurrent
push str.WINDOW
call ebx
push eax
call fcn.00411d40
add esp, 4
push 0x482c18
push 1
push str.DrawDouble
push str.WINDOW
call ebx
push eax
call fcn.00411a70
add esp, 4
push 0x482c18
push 1
push str.DragMode
push str.WINDOW
call ebx
push eax
call fcn.00411a20
add esp, 4
push 0x482c18
push 1
push str.EnablePlaying
push str.WINDOW
call ebx
push eax
call fcn.00411ac0
add esp, 4
push 0x482c18
push 1
push str.QuitMessage
push str.WINDOW
call ebx
push eax
call fcn.00411b20
add esp, 4
push 0x482c18
push 1
push str.SlideOverlapNoteMode
push str.WINDOW
call ebx
push eax
call fcn.00411da0
add esp, 4
push 0x482c18
push 1
push str.EnablePressNoteStretch
push str.WINDOW
call ebx
push eax
call fcn.00411c90
add esp, 4
push 0x482c18
push 1
push str.NoteEnlarge
push str.WINDOW
call ebx
push eax
call fcn.00411c40
add esp, 4
push 0x482c18
push 0
push str.Metronome
push str.WINDOW
call ebx
push eax
call fcn.00411be0
add esp, 4
push 0x482c18
push 1
push str.SmoothScroll
push str.WINDOW
call ebx
push eax
call fcn.00411ce0
add esp, 4
mov ecx, 0x4838b8
call fcn.0040b230
push 0x482c18
push 0
push str.WindowState
push str.WINDOW
call ebx
cmp eax, 1
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x4183dd
push 3
jmp 0x4183e0
push dword [ebp + 0x14]
push dword [0x482a94]
call eax
push dword [0x482a94]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [0x482a94]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push 0
call fcn.00415620
add esp, 4
call fcn.00411fa0
call fcn.00411f50
lea eax, [ebp - 0x678]
mov ecx, 0x4838b8
push eax
call fcn.0040c720
movzx eax, word [ebp - 0x678]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 1
push eax
push 0x3ec
push dword [0x482ad4]
call edi
push 0x46d368
push 0x3ed
push dword [0x482ad4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp + 0x10]
mov ah, byte [ecx]
test ah, ah
je 0x4185ca
lea edx, [ebp - 0x28c]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x418470
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 0x418495
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4184b0
sub ecx, edx
sub ecx, ebx
cmp ecx, 0x104
jae 0x418705
mov byte [ebp + ecx - 0x188], al
lea eax, [ebp - 0x188]
push 0x46d5cc
push eax
call fcn.004265b5
mov esi, eax
add esp, 8
test esi, esi
je 0x4185ca
push esi
push 3
lea eax, [ebp - 0x67c]
push 1
push eax
call fcn.00445e11
add esp, 0x10
cmp byte [ebp - 0x67c], 0x4f
jne 0x4186e2
cmp byte [ebp - 0x67b], 0x72
jne 0x4186e2
cmp byte [ebp - 0x67a], 0x67
jne 0x4186e2
push esi
call fcn.00426273
add esp, 4
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x188]
lea ecx, [ecx + 1]
mov byte [ecx + 0x4801ff], al
test al, al
jne 0x418540
mov ecx, 0x4838b8
call fcn.0040f8c0
cmp eax, 1
jne 0x4186bb
push 0
call fcn.00415620
add esp, 4
mov byte [0x47f19c], 0
lea eax, [ebp - 0x678]
mov ecx, 0x4838b8
push eax
call fcn.0040c720
movzx eax, word [ebp - 0x678]
push 1
push eax
push 0x3ec
push dword [0x482ad4]
call edi
push 0x46d368
push 0x3ed
push dword [0x482ad4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call fcn.004041c0
call fcn.00402760
mov ecx, 0x4838b8
call fcn.0040b230
call fcn.00418760
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x69c]
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x418696
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [ebp - 0x69c]
push eax
push dword [ebp - 0x680]
push dword [0x482a94]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x41867f
lea eax, [ebp - 0x69c]
push eax
push dword [0x482ad0]
call esi
test eax, eax
jne 0x41867f
lea eax, [ebp - 0x69c]
push eax
push dword [0x482ad4]
call esi
test eax, eax
jne 0x41867f
lea eax, [ebp - 0x69c]
push eax
push dword [0x482ad8]
call esi
test eax, eax
jne 0x41867f
lea eax, [ebp - 0x69c]
push eax
push dword [0x482adc]
call esi
test eax, eax
jne 0x41867f
lea eax, [ebp - 0x69c]
push eax
call ebx
lea eax, [ebp - 0x69c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x69c]
push eax
call edi
test eax, eax
jne 0x418600
push dword [ebp - 0x680]
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [ebp - 0x694]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4806dc]
mov edx, 0x480200
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 0x4186d0
jmp 0x4185ca
push esi
call fcn.00426273
add esp, 4
jmp 0x4185ca
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418a55
mov esp, ebp
pop ebp
ret 0x10
call fcn.00418ba1
int3