Function at 0x4182b0
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 [0x480230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x415890
mov dword [ebp - 0x67c], ebx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.00418f60
or eax, 0xffffffff
mov byte [0x483e30], 0
mov ecx, 0x80
mov dword [0x4840b0], 0
mov edi, 0x483eb0
mov dword [0x4844b8], 0
rep stosd dword es:[edi], eax
mov eax, 0xffff
mov dword [0x4844bc], 0
mov ecx, 0x100
mov edi, 0x4840b8
rep stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x100
mov edi, 0x4844c0
rep stosd dword es:[edi], eax
call fcn.00411f90
mov ecx, dword [0x4816ec]
mov edx, 0x481210
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x418344
push 0x104
mov dword [0x484220], 0x21
mov dword [0x484204], 0x22
mov dword [0x484218], 0x23
mov dword [0x4841c4], 0x24
mov dword [0x4841d0], 0x25
mov dword [0x484210], 0x26
mov dword [0x4841d4], 0x27
mov dword [0x4841c0], 0x28
mov dword [0x4841f0], 0x29
mov dword [0x4841e0], 0x2a
mov dword [0x4841ec], 0x2b
mov dword [0x4841e4], 0x2c
mov dword [0x4843a8], 0x2d
mov dword [0x4841e8], 0x2e
mov dword [0x4843b0], 0x2f
mov dword [0x4843b4], 0x30
mov dword [0x4843a0], 0x31
mov dword [0x484440], 0x32
mov dword [0x48442c], 0x33
call fcn.004269e5
push 0x104
mov dword [0x4840b4], eax
call fcn.004269e5
add esp, 8
mov dword [0x4848c0], eax
push 0x118
push 0x483af0
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 0x46f3f4
push ebx
mov dword [ebp - 0x6c8], 0x30
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6c0], 0x416160
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x6b8], 0
mov dword [0x483aa0], ebx
mov dword [ebp - 0x6b4], ebx
call esi
push 0x46f3f4
push dword [0x483aa0]
mov dword [ebp - 0x6b0], eax
call esi
push str.CURSOR
push dword [0x483aa0]
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], 0x483af0
call edi
mov esi, eax
push 0x15
add esi, esi
call edi
add eax, esi
add eax, dword [0x480198]
push 0x21
mov dword [0x483c24], 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 [0x48019c]
mov dword [0x483e28], eax
lea eax, [ebp - 0x6c8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x418f42
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xff
push 0x483c28
push ebx
call esi
push 0x483c28
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x483c28
sub ecx, 4
add eax, ecx
push str..exe
push eax
mov dword [0x483c20], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str..ini
test eax, eax
jne 0x418593
push dword [0x483c20]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41859e
push 0x483c28
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x483c28
push 0x10
push str.NoteWidth
push str.WINDOW
call ebx
cmp eax, 0x10
jle 0x4185c3
mov eax, 0x10
jmp 0x4185cd
mov ecx, 4
cmp eax, ecx
cmovl eax, ecx
push 0x483c28
push 0
push str.left
push str.WINDOW
mov dword [0x482ff0], eax
call ebx
push 0x483c28
push 0
push 0x46f42c
push str.WINDOW
mov dword [0x483c10], eax
call ebx
push 0x483c28
push 0x230
push str.right
push str.WINDOW
mov dword [0x483c14], eax
call ebx
push 0x483c28
push 0x230
push str.bottom
push str.WINDOW
mov dword [0x483c18], eax
call ebx
push 0x483c28
push 0x14
push str.left
push str.COMMONDIALOG
mov dword [0x483c1c], eax
call ebx
push 0x483c28
push 0x14
push 0x46f42c
push str.COMMONDIALOG
mov dword [0x481004], eax
call ebx
push 0x483c28
push 0x226
push str.right
push str.COMMONDIALOG
mov dword [0x481008], eax
call ebx
push 0x483c28
push 0x230
push str.bottom
push str.COMMONDIALOG
mov dword [0x48100c], eax
call ebx
push 0x483c28
push 1
push str.Repeat
push str.STANDARD_MIDI_EXPORT
mov dword [0x481010], eax
call ebx
mov dword [0x481018], eax
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [0x46f490]
movups xmm0, xmmword [str._C__AUTHOR_xxxxx_]
mov word [ebp - 0x64], ax
mov al, byte [0x46f492]
mov byte [ebp - 0x62], al
movzx eax, word [ebp - 0x5a8]
push eax
movups xmmword [ebp - 0x84], xmm0
lea eax, [ebp - 0x72]
movups xmm0, xmmword [0x46f480]
push 0x46e5d8
push eax
movups xmmword [ebp - 0x74], xmm0
call fcn.004092c0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x84]
add esp, 0xc
push 0x483c28
push 0xff
push 0x481418
push eax
push str.Author
push str.STANDARD_MIDI_EXPORT
call edi
push 0x483c28
push 0xff
push 0x481318
push dword [0x4816a8]
push str.Title
push str.STANDARD_MIDI_EXPORT
call edi
push 0
push dword [0x483aa0]
mov dword [0x481518], 0xffffffff
push 0
push 0
push dword [0x483c1c]
mov dword [0x48151c], 0xffffffff
push dword [0x483c18]
push dword [0x483c14]
push dword [0x483c10]
push 0xcf0000
push 0x46f4a4
push 0x483af0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x483aa4], eax
test eax, eax
je 0x418f42
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.004481ca
lea edx, [ebp - 0x28c]
add esp, 0x14
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x418800
lea edi, [ebp - 0x390]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x418810
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 0x418830
lea ecx, [ebp - 0x494]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x418850
mov eax, dword [str.themes]
mov dword [ecx], eax
mov ax, word [0x46e5a4]
mov word [ecx + 4], ax
mov al, byte [0x46e5a6]
mov byte [ecx + 6], al
lea eax, [ebp - 0x494]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x483c28
push 0x104
push dword [0x4848c0]
push 0
push str.CurrentThemePath
push str.WINDOW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x4848c0]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4188b0
sub ecx, esi
je 0x4188d3
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4188cb
test al, 0x10
jne 0x4188d3
mov eax, dword [0x4848c0]
mov byte [eax], 0
push dword [0x483aa4]
call fcn.0040b670
push 0
push 0x46f390
call fcn.0040aa70
push 1
push 0x46f398
call fcn.0040aa70
push 2
push 0x46f3a0
call fcn.0040aa70
push 3
push 0x46f3a8
call fcn.0040aa70
call fcn.0040ab80
push dword [0x483aa4]
call fcn.00414500
add esp, 0x28
call fcn.00414820
mov ecx, 0x483ab0
call fcn.00413cb0
mov esi, dword [sym.imp.USER32.dll_CreateDialogParamA]
push 0
push 0x405590
push dword [0x483aa4]
push 0x46f4c4
push dword [0x483aa0]
call esi
push 0
push 0x409720
push dword [0x483aa4]
mov dword [0x483ae0], eax
push str.TRACK
push dword [0x483aa0]
call esi
push 0
push 0x4043f0
push dword [0x483aa4]
mov dword [0x483ae4], eax
push str.COPYBD
push dword [0x483aa0]
call esi
push 0x483c28
push 0xc8
push str.left
push str.TRACK
mov dword [0x483ae8], eax
call ebx
push 0x483c28
push 0xc8
push 0x46f42c
push str.TRACK
mov dword [0x483c10], eax
call ebx
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x15
push 0
push 0
push eax
push dword [0x483c10]
mov dword [0x483c14], eax
push 0
push dword [0x483ae4]
call esi
push 0x483c28
push 0x118
push str.left
push str.PLAYWINDOW
call ebx
push 0x483c28
push 0x118
push 0x46f42c
push str.PLAYWINDOW
mov dword [0x483c10], eax
call ebx
push 0x15
push 0
push 0
push eax
push dword [0x483c10]
mov dword [0x483c14], eax
push 0
push dword [0x483ae0]
call esi
push 0x483c28
push 0xb4
push str.left
push str.COPYWINDOW
call ebx
push 0x483c28
push 0x17c
push 0x46f42c
push str.COPYWINDOW
mov dword [0x483c10], eax
call ebx
push 0x15
push 0
push 0
push eax
push dword [0x483c10]
mov dword [0x483c14], eax
push 0
push dword [0x483ae8]
call esi
push 0x483c28
push 1
push str.show
push str.COPYWINDOW
call ebx
mov dword [0x480c48], eax
test eax, eax
jne 0x418aa9
push eax
push dword [0x483ae8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x483c28
push 0
push str.autosave
push str.INIT_PAN_VOL
call ebx
push eax
mov dword [0x480e90], eax
call fcn.00412200
add esp, 4
mov ecx, 0x4848c8
call fcn.0040cf80
cmp dword [0x482ff0], 4
mov esi, dword [sym.imp.USER32.dll_GetMenu]
jne 0x418ae7
push 1
jmp 0x418ae9
push 0
push 0x9d5b
push dword [0x483aa4]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
cmp dword [0x482ff0], 0x10
jne 0x418b0c
push 1
jmp 0x418b0e
push 0
push 0x9d5a
push dword [0x483aa4]
call esi
push eax
call edi
call fcn.00412d60
push 0x483c28
push 0
push str.GridMode
push str.WINDOW
call ebx
push eax
call fcn.004123c0
add esp, 4
push 0x483c28
push 0
push str.AlwaysCurrent
push str.WINDOW
call ebx
push eax
call fcn.00412580
add esp, 4
push 0x483c28
push 1
push str.DrawDouble
push str.WINDOW
call ebx
push eax
call fcn.004122b0
add esp, 4
push 0x483c28
push 1
push str.DragMode
push str.WINDOW
call ebx
push eax
call fcn.00412260
add esp, 4
push 0x483c28
push 1
push str.EnablePlaying
push str.WINDOW
call ebx
push eax
call fcn.00412300
add esp, 4
push 0x483c28
push 1
push str.QuitMessage
push str.WINDOW
call ebx
push eax
call fcn.00412360
add esp, 4
push 0x483c28
push 1
push str.SlideOverlapNoteMode
push str.WINDOW
call ebx
push eax
call fcn.004125e0
add esp, 4
push 0x483c28
push 1
push str.EnablePressNoteStretch
push str.WINDOW
call ebx
push eax
call fcn.004124d0
add esp, 4
push 0x483c28
push 1
push str.NoteEnlarge
push str.WINDOW
call ebx
push eax
call fcn.00412480
add esp, 4
push 0x483c28
push 0
push str.Metronome
push str.WINDOW
call ebx
push eax
call fcn.00412420
add esp, 4
push 0x483c28
push 1
push str.SmoothScroll
push str.WINDOW
call ebx
push eax
call fcn.00412520
add esp, 4
mov ecx, 0x4848c8
call fcn.0040b6f0
push 0x483c28
push 0
push str.WindowState
push str.WINDOW
call ebx
cmp eax, 1
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x418c82
push 3
jmp 0x418c85
push dword [ebp + 0x14]
push dword [0x483aa4]
call eax
push dword [0x483aa4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push dword [0x483aa4]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov byte [0x483aad], 0
call fcn.00415fd0
call fcn.004127e0
call fcn.00412790
lea eax, [ebp - 0x678]
mov ecx, 0x4848c8
push eax
call fcn.0040cea0
movzx eax, word [ebp - 0x678]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 1
push eax
push 0x3ec
push dword [0x483ae4]
call esi
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x46e378
push 0x3ed
push dword [0x483ae4]
call edi
mov ecx, dword [ebp + 0x10]
mov ah, byte [ecx]
test ah, ah
je 0x418e28
lea edx, [ebp - 0x28c]
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 0x418d20
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 0x418d45
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418d60
sub ecx, edx
sub ecx, ebx
cmp ecx, 0x104
jae 0x418f57
mov byte [ebp + ecx - 0x188], al
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x4848c8
call fcn.0040ff20
test eax, eax
jne 0x418e28
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x188]
lea ecx, [ecx + 1]
mov byte [ecx + 0x48120f], al
test al, al
jne 0x418da0
mov ecx, 0x4848c8
call fcn.00410060
cmp eax, 1
jne 0x418f1b
mov byte [0x483aad], 0
call fcn.00415fd0
lea eax, [ebp - 0x678]
mov byte [0x4801a4], 0
push eax
mov ecx, 0x4848c8
call fcn.0040cea0
movzx eax, word [ebp - 0x678]
push 1
push eax
push 0x3ec
push dword [0x483ae4]
call esi
push 0x46e378
push 0x3ed
push dword [0x483ae4]
call edi
call fcn.004043c0
call fcn.00402910
mov ecx, 0x4848c8
call fcn.0040b6f0
call fcn.00418fb0
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 0x418ef6
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
lea eax, [ebp - 0x698]
push eax
push dword [ebp - 0x67c]
push dword [0x483aa4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x418edf
lea eax, [ebp - 0x698]
push eax
push dword [0x483ae0]
call esi
test eax, eax
jne 0x418edf
lea eax, [ebp - 0x698]
push eax
push dword [0x483ae4]
call esi
test eax, eax
jne 0x418edf
lea eax, [ebp - 0x698]
push eax
push dword [0x483ae8]
call esi
test eax, eax
jne 0x418edf
lea eax, [ebp - 0x698]
push eax
push dword [0x483aec]
call esi
test eax, eax
jne 0x418edf
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 0x418e60
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.004192c7
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4816ec]
mov edx, 0x481210
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 0x418f30
jmp 0x418e28
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192c7
mov esp, ebp
pop ebp
ret 0x10
call fcn.00419413
int3