Function at 0x402066
Capabilities:
Get graphical window text
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
nop
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0x184
push eax
mov eax, dword [0x4105d4]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0x40d040
push eax
lea eax, [ebp - 0x64]
push eax
call sub.msvcrt.dll_strcpy
add esp, 8
mov eax, 0x40d607
and eax, 0xff
mov byte [ebp - 0x69], al
mov eax, 0x1e
mov dword [ebp - 0x74], eax
mov eax, 0
mov dword [ebp - 0x7c], eax
mov eax, 0
mov dword [ebp - 0x80], eax
mov eax, 0
mov dword [ebp - 0x84], eax
mov eax, 0x1e
push eax
lea eax, [ebp - 0xa3]
push eax
mov eax, dword [0x4105f8]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0xa3]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0xf0
push eax
mov eax, dword [0x410600]
push eax
call sub.user32.dll_SendMessageA
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
cmp eax, 1
jne 0x4021eb
mov eax, 0x10
push eax
mov eax, 0
push eax
lea eax, [ebp - 0xa3]
push eax
call sub.msvcrt.dll_strtol
add esp, 0xc
mov dword [ebp - 0xac], eax
mov eax, 0x1f
push eax
mov eax, 0
push eax
lea eax, [ebp - 0xa3]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0xac]
push eax
call fcn.0040153e
add esp, 4
movzx eax, byte [0x4a2eb7]
cmp eax, 0
jne 0x4021ac
movzx eax, byte [0x4a2eb6]
mov byte [ebp - 0xa3], al
movzx eax, byte [0x4a2eb5]
mov byte [ebp - 0xa2], al
mov eax, 2
mov dword [ebp - 0x80], eax
movzx eax, byte [0x4a2eb7]
cmp eax, 0
jle 0x4021eb
movzx eax, byte [0x4a2eb5]
mov byte [ebp - 0xa3], al
movzx eax, byte [0x4a2eb6]
mov byte [ebp - 0xa2], al
movzx eax, byte [0x4a2eb7]
mov byte [ebp - 0xa1], al
mov eax, 3
mov dword [ebp - 0x80], eax
mov eax, 0x40d608
push eax
lea eax, [ebp - 0x64]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x68], eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.msvcrt.dll_fseek
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
call fcn.00401396
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], esp
mov eax, dword [ebp - 0xc4]
push eax
call fcn.0040c1d0
add esp, 4
mov dword [ebp - 0xc8], esp
mov eax, dword [ebp - 0x70]
push eax
mov eax, 0
push eax
mov eax, dword [ebp - 0xc8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 1
mov dword [ebp - 0xd0], eax
mov esp, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0x70]
cmp eax, ecx
jge 0x4022cb
jmp 0x4022a2
mov esp, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd0]
mov ecx, eax
inc eax
mov dword [ebp - 0xd0], eax
jmp 0x40226f
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xc8]
add ecx, eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, 1
push eax
mov eax, 1
push eax
push ecx
call sub.msvcrt.dll_fread
add esp, 0x10
jmp 0x40228b
mov eax, 0
mov dword [ebp - 0xd4], eax
mov esp, dword [ebp - 0xc8]
mov eax, 1
mov dword [ebp - 0x78], eax
mov eax, 0
mov dword [ebp - 0xd8], eax
mov esp, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x80]
cmp eax, ecx
jge 0x402363
jmp 0x402322
mov esp, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd8]
mov ecx, eax
inc eax
mov dword [ebp - 0xd8], eax
jmp 0x4022ef
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xd8]
add eax, ecx
mov ecx, dword [ebp - 0xc8]
add ecx, eax
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0xa3]
add edx, eax
movzx eax, byte [ecx]
movzx ecx, byte [edx]
cmp eax, ecx
je 0x402361
mov eax, 0
mov dword [ebp - 0x78], eax
jmp 0x402363
jmp 0x40230b
mov eax, dword [ebp - 0x78]
cmp eax, 1
jne 0x4023b9
mov eax, dword [ebp - 0xd4]
mov ecx, eax
inc eax
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x84]
push eax
mov eax, str.....__i
push eax
lea eax, [ebp - 0xc0]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
mov eax, 0
push eax
mov eax, 0x180
push eax
mov eax, dword [0x4105d4]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x84]
mov ecx, eax
inc eax
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x70]
cmp eax, ecx
jl 0x4022d6
mov eax, dword [ebp - 0x68]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [ebp - 0xd4]
cmp eax, 0
jne 0x402412
mov eax, str.Bulunamad
push eax
mov eax, 0
push eax
mov eax, 0x180
push eax
mov eax, dword [0x4105d4]
push eax
call sub.user32.dll_SendMessageA
mov esp, dword [ebp - 0xcc]
leave
ret