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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 0x64], 0
push ebx
push esi
push edi
push 0xb
xor eax, eax
and dword [ebp - 0x34], eax
pop ecx
lea edi, [ebp - 0x60]
push 6
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
call edi
mov esi, eax
push 0x33
shl esi, 1
call edi
lea eax, [eax + esi + 0x1a]
add esi, 0x83
push str.032768
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
call section..text
pop ecx
mov ebx, 0x40582c
push 0xff
push ebx
push 0
mov dword [0x405828], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, 0x40592c
mov eax, esi
test eax, eax
je 0x40130a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0040160b
cmp eax, dword [0x405828]
pop ecx
push esi
seta byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, esi
dec eax
test ecx, ecx
je 0x401358
mov dl, byte [eax + 0x40592c]
lea ecx, [eax + 0x40592c]
test dl, dl
je 0x40134c
test eax, eax
jl 0x40134c
cmp dl, 0x2e
je 0x401345
dec eax
jmp 0x401329
and byte [ecx], 0
xor eax, eax
jmp 0x401329
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 0x401374
push esi
call ebx
cmp eax, 0xffffffff
je 0x401374
mov byte [0x405a50], 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, 0x4051e8
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
xor esi, esi
push esi
push str.speed
push ebx
mov byte [0x4051a3], al
call edi
push 0x30
mov byte [0x405a4e], al
pop edi
lea eax, [ebp - 0x64]
push edi
push esi
push eax
call fcn.00403450
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], 0x40169a
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 0x401464
push 0x12030
push esi
push str.TinyTask_Run_Failure
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401590
mov eax, dword [ebp - 0x14]
push 5
pop ecx
cmp eax, ecx
mov dword [ebp - 0x10], ecx
jl 0x401474
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 0x401495
push 1
call edi
sub eax, dword [ebp - 8]
push 5
mov dword [ebp - 0x10], eax
pop eax
jmp 0x4014a5
mov ecx, dword [ebp - 0x14]
push 5
pop eax
cmp ecx, eax
mov dword [ebp - 0x10], eax
jl 0x4014a5
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jl 0x4014b2
mov dword [ebp - 0x14], ecx
push esi
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jge 0x4014c5
push esi
call edi
sub eax, dword [ebp - 0xc]
jmp 0x4014d0
mov eax, dword [ebp - 0x18]
cmp eax, 5
jge 0x4014d0
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 [0x405800], eax
je 0x40144d
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 [0x405800]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x401576
cmp byte [edi], 0
je 0x401576
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x401569
cmp al, 0x22
je 0x40154b
inc dword [ebp + 0x10]
inc dword [ebp + 8]
jmp 0x401536
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.004034b0
add esp, 0xc
jmp 0x401536
push esi
push edi
call fcn.00402a13
test eax, eax
je 0x4015cc
jmp 0x4015b5
cmp byte [ebp - 1], 0
je 0x4015cc
push dword [0x405828]
push 0x40582c
call fcn.00402a13
test eax, eax
jne 0x401594
xor eax, eax
jmp 0x401604
push str.00000
call section..text
mov byte [0x405a4e], al
mov dword [esp], str.00001
call section..text
pop ecx
mov dword [0x405178], eax
push esi
push 0x8003
push 0x111
push dword [0x405800]
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 0x401601
cmp eax, 0xffffffff
je 0x401601
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 0x4015d9
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x10