Function at 0x40135d
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0xb
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
mov dword [ebp - 0x64], ebx
push 6
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
push 7
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
mov esi, eax
push 0x33
shl esi, 1
call edi
lea eax, [eax + esi + 0x1a]
add esi, 0x83
push str.033792
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
call section..text
pop ecx
mov esi, 0x4057cc
push 0xff
push esi
push ebx
mov dword [0x4057c8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov esi, 0x4058cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004016f9
cmp eax, dword [0x4057c8]
pop ecx
push esi
seta byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, esi
dec eax
test ecx, ecx
je 0x40141a
mov dl, byte [eax + 0x4058cc]
lea ecx, [eax + 0x4058cc]
test dl, dl
je 0x40141a
cmp eax, ebx
jl 0x40141a
cmp dl, 0x2e
je 0x401413
dec eax
jmp 0x4013f7
and byte [ecx], 0
xor eax, eax
jmp 0x4013f7
push str..ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
test al, 0x10
jne 0x401442
push esi
call ebx
cmp eax, 0xffffffff
je 0x401442
mov byte [0x4059f0], 1
push esi
push 0
call edi
cdq
sub eax, edx
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, eax
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
mov ebx, 0x405080
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push str.window_x
push ebx
call edi
push esi
push 1
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push str.window_y
push ebx
call edi
push esi
push 1
push str.tips
push ebx
mov dword [ebp - 0x14], eax
call edi
push esi
push 0
push str.speed
push ebx
mov byte [0x40503b], al
call edi
push esi
push 0
push str.record_key
push ebx
mov byte [0x4059ee], al
call edi
push esi
xor esi, esi
push esi
push str.play_key
push ebx
mov byte [0x4059f1], al
call edi
push 0x30
mov byte [0x4059f2], al
pop edi
lea eax, [ebp - 0x64]
push edi
push esi
push eax
call fcn.00403850
add esp, 0xc
mov dword [ebp - 0x64], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], esi
push 0x7f00
push esi
mov dword [ebp - 0x5c], 0x401788
mov dword [ebp - 0x50], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x3e9
push edi
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], str.TinyTaskClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x401552
push 0x12030
push esi
push str.TinyTask_Run_Failure
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40167e
mov eax, dword [ebp - 0x14]
push 5
pop ecx
cmp eax, ecx
mov dword [ebp - 0x10], ecx
jl 0x401562
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jge 0x401583
push 1
call edi
sub eax, dword [ebp - 8]
push 5
mov dword [ebp - 0x10], eax
pop eax
jmp 0x401593
mov ecx, dword [ebp - 0x14]
push 5
pop eax
cmp ecx, eax
mov dword [ebp - 0x10], eax
jl 0x401593
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jl 0x4015a0
mov dword [ebp - 0x14], ecx
push esi
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x4015b3
push esi
call edi
sub eax, dword [ebp - 0xc]
jmp 0x4015be
mov eax, dword [ebp - 0x18]
cmp eax, 5
jge 0x4015be
push 5
pop eax
push esi
push dword [ebp + 8]
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push 0x86c80000
push ebx
push str.TinyTaskClass
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [0x4057a0], eax
je 0x40153b
mov cl, byte [ebp - 1]
neg cl
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4057a0]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x401664
cmp byte [edi], 0
je 0x401664
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x401657
cmp al, 0x22
je 0x401639
inc dword [ebp + 0x10]
inc dword [ebp + 8]
jmp 0x401624
mov eax, dword [ebp + 0x10]
lea ebx, [eax + edi + 1]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push dword [ebp + 8]
call fcn.004038b0
add esp, 0xc
jmp 0x401624
push esi
push edi
call fcn.00402c58
test eax, eax
je 0x4016ba
jmp 0x4016a3
cmp byte [ebp - 1], 0
je 0x4016ba
push dword [0x4057c8]
push 0x4057cc
call fcn.00402c58
test eax, eax
jne 0x401682
xor eax, eax
jmp 0x4016f2
push str.00000
call section..text
mov byte [0x4059ee], al
mov dword [esp], str.00001
call section..text
pop ecx
mov dword [0x405010], eax
push esi
push 0x8003
push 0x111
push dword [0x4057a0]
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
call edi
cmp eax, esi
je 0x4016ef
cmp eax, 0xffffffff
je 0x4016ef
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 esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
jmp 0x4016c7
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x10