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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push 0xb
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
mov dword [ebp - 0x48], ebx
and byte [ebp - 0x84], al
rep stosd dword es:[edi], eax
push 6
lea edi, [ebp - 0x60]
pop ecx
mov dword [ebp - 0x64], ebx
rep stosd dword es:[edi], eax
push 7
lea edi, [ebp - 0x83]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
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 + 0x1e]
add esi, 0x83
push str.033792
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call section..text
pop ecx
mov esi, 0x405a88
push 0xff
push esi
push ebx
mov dword [0x405a84], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov esi, 0x405b88
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0040175a
cmp eax, dword [0x405a84]
pop ecx
push esi
seta byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, esi
dec eax
test ecx, ecx
je 0x401431
mov dl, byte [eax + 0x405b88]
lea ecx, [eax + 0x405b88]
test dl, dl
je 0x401431
cmp eax, ebx
jl 0x401431
cmp dl, 0x2e
je 0x40142a
dec eax
jmp 0x40140e
and byte [ecx], 0
xor eax, eax
jmp 0x40140e
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 0x401459
push esi
call ebx
cmp eax, 0xffffffff
je 0x401459
mov byte [0x405cac], 1
push esi
push 0
call edi
cdq
sub eax, edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, eax
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edi, 0x40507c
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push str.window_x
push edi
call ebx
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 - 0x10]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push str.window_y
push edi
call ebx
push esi
push 0
push str.speed
push edi
mov dword [ebp - 0xc], eax
call ebx
push esi
push 8
push str.speed_custom
push edi
mov byte [0x405caa], al
call ebx
mov byte [0x405034], al
push esi
lea eax, [ebp - 0x84]
push 0x1f
push eax
push 0x4050e0
push str.topmost
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x84], 0x78
jne 0x4014f9
mov byte [0x405033], 1
jmp 0x401509
push esi
push 0
push str.topmost
push edi
call ebx
mov byte [0x405033], al
push esi
push 0
push str.record_key
push edi
call ebx
push esi
xor esi, esi
push esi
push str.play_key
push edi
mov byte [0x405cad], al
call ebx
push 0x30
mov byte [0x405cae], al
pop ebx
lea eax, [ebp - 0x48]
push ebx
push esi
push eax
call fcn.004037da
add esp, 0xc
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x44], esi
push 0x7f00
push esi
mov dword [ebp - 0x40], 0x4017e9
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x3e9
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], str.TinyTaskClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x4015a6
push 0x12030
push esi
push str.TinyTask_Run_Failure
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4016df
mov eax, dword [ebp - 0xc]
push 5
pop ecx
cmp eax, ecx
mov dword [ebp - 8], ecx
jl 0x4015b6
mov dword [ebp - 8], eax
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call ebx
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jge 0x4015d7
push 1
call ebx
sub eax, dword [ebp - 0x10]
push 5
mov dword [ebp - 8], eax
pop eax
jmp 0x4015e7
mov ecx, dword [ebp - 0xc]
push 5
pop eax
cmp ecx, eax
mov dword [ebp - 8], eax
jl 0x4015e7
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp ecx, eax
jl 0x4015f4
mov dword [ebp - 0xc], ecx
push esi
call ebx
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jge 0x401607
push esi
call ebx
sub eax, dword [ebp - 0x14]
jmp 0x401612
mov eax, dword [ebp - 0x18]
cmp eax, 5
jge 0x401612
push 5
pop eax
push esi
push dword [ebp + 8]
push esi
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 8]
push eax
mov al, byte [0x405033]
neg al
sbb eax, eax
push 0x86c80000
and eax, 8
push edi
or eax, 0x40000
push str.TinyTaskClass
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [0x405a58], eax
je 0x40158f
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 [0x405a58]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x4016c5
cmp byte [edi], 0
je 0x4016c5
mov dword [ebp + 0x10], esi
mov dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x4016b8
cmp al, 0x22
je 0x40169a
inc dword [ebp + 0x10]
inc dword [ebp + 8]
jmp 0x401685
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.00403873
add esp, 0xc
jmp 0x401685
push esi
push edi
call fcn.00402cc3
test eax, eax
je 0x40171b
jmp 0x401704
cmp byte [ebp - 1], 0
je 0x40171b
push dword [0x405a84]
push 0x405a88
call fcn.00402cc3
test eax, eax
jne 0x4016e3
xor eax, eax
jmp 0x401753
push str.00005
call section..text
mov byte [0x405caa], al
mov dword [esp], str.00055
call section..text
pop ecx
mov dword [0x405008], eax
push esi
push 0x8003
push 0x111
push dword [0x405a58]
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x64]
push esi
push eax
call edi
cmp eax, esi
je 0x401750
cmp eax, 0xffffffff
je 0x401750
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x64]
push esi
push eax
jmp 0x401728
mov eax, dword [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret 0x10