Function at 0x4036a6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push 0xb
xor eax, eax
pop ecx
xor ebx, ebx
push 6
mov dword [ebp - 0x48], ebx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], ebx
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3f
xor eax, eax
pop ecx
mov byte [ebp - 0x274], bl
lea edi, [ebp - 0x273]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x174], bl
lea edi, [ebp - 0x173]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc7fb6e
stosb byte es:[edi], al
lea eax, [ebp - 0x274]
push 0x40550c
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 0x10]
call fcn.00404218
mov ecx, 0xfe
add esp, 0x10
cmp eax, ecx
jle 0x40373a
mov eax, ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x174]
push eax
call fcn.00404254
push str.37376
call fcn.00404606
push ebx
mov dword [0x4072d8], eax
call fcn.00403d87
add esp, 0x14
cmp eax, dword [0x4072d8]
mov edi, 0x405318
setg al
test al, al
mov byte [0x4075e5], al
jne 0x4038ea
push 0xff
mov esi, 0x4074e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00404218
pop ecx
dec eax
lea ecx, [eax + 0x4074e0]
mov dl, byte [ecx]
test dl, dl
je 0x4037ba
cmp eax, ebx
jl 0x4037ba
cmp dl, 0x2e
jne 0x40379d
mov byte [ecx], 0
xor eax, eax
jmp 0x40379d
push str..ini
push esi
call fcn.0040429d
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop ecx
pop ecx
push esi
push 5
push str.toolbar_padding
push edi
call ebx
mov byte [0x407044], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401996
pop ecx
pop ecx
push 0
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 1
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 4]
cdq
push esi
push dword [ebp - 0x18]
sub eax, edx
sar ecx, 1
sar eax, 1
push str.window_x
sub ecx, eax
push edi
mov dword [ebp - 0x14], ecx
call ebx
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push str.window_y
push edi
call ebx
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + 1]
push edx
push eax
mov dword [ebp - 0x10], eax
push ecx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_RectVisible]
test eax, eax
jne 0x40387c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push esi
push 0
push str.speed
push edi
call ebx
push esi
push 8
push str.speed_custom
push edi
mov dword [0x407008], eax
call ebx
push esi
push 0
push str.topmost
push edi
mov dword [0x40700c], eax
call ebx
push esi
neg eax
push 0
sbb eax, eax
push str.hide_captions
and eax, 0x40000
push edi
mov dword [0x4072cc], eax
call ebx
sub dword [ebp - 4], eax
push esi
push 0
push str.record_key
push edi
mov dword [0x4072dc], eax
call ebx
push esi
push 0
push str.play_key
push edi
mov byte [0x4075e3], al
call ebx
mov byte [0x4075e4], al
xor ebx, ebx
push 0x30
pop esi
push esi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00404428
mov eax, dword [ebp + 8]
add esp, 0xc
push 0xfa1
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x401b6e
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
mov esi, str.TinyTaskClass
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40395b
push 0x12030
push edi
push str.Startup_Failure:_RegisterClass
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403a6a
cmp dword [ebp - 8], 0xe0
jle 0x40396b
mov eax, 0x20000
jmp 0x40396d
xor eax, eax
push ebx
push dword [ebp + 8]
or eax, 0x86c80000
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
mov eax, dword [0x4072cc]
neg eax
sbb eax, eax
push edi
and eax, 8
push esi
or eax, 0x40000
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x4072a8], eax
jne 0x4039b5
push 0x12030
push edi
push str.Startup_Failure:_CreateWindow
jmp 0x40394f
mov cl, byte [0x4075e5]
neg cl
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4072a8]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp + 0x10], ebx
je 0x403a31
cmp byte [ebp - 0x174], 0
je 0x403a31
lea eax, [ebp - 0x174]
push eax
xor esi, esi
call fcn.00404218
pop ecx
mov edi, eax
lea eax, [ebp + esi - 0x174]
mov cl, byte [eax]
test cl, cl
je 0x403a22
cmp cl, 0x22
jne 0x403a1f
mov ecx, edi
sub ecx, esi
push ecx
lea ecx, [eax + 1]
push ecx
push eax
call fcn.004044e9
add esp, 0xc
dec edi
jmp 0x4039f8
inc esi
jmp 0x4039f8
push ebx
lea eax, [ebp - 0x174]
push eax
call section..text
jmp 0x403aa9
cmp byte [0x4075e5], 0
je 0x403aa9
push 0xff
lea eax, [ebp - 0x274]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [0x4072d8]
lea eax, [ebp - 0x274]
push eax
call section..text
test eax, eax
jne 0x403a6e
xor eax, eax
jmp 0x403ada
push str.00000
call fcn.00404606
movzx eax, al
mov dword [0x407008], eax
mov dword [esp], str.00001
call fcn.00404606
pop ecx
push ebx
push 0x8003
push 0x111
push dword [0x4072a8]
mov dword [0x407010], eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x403aca
cmp eax, 0xffffffff
je 0x403ad7
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 ebx
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
call esi
cmp eax, ebx
jne 0x403ab1
mov eax, dword [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret 0x10