Function at 0x40c8a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e4
mov eax, dword [0x576f24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040d1c0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [edi + 0x1b4]
call esi
push 0
push 0
push 0x147
push dword [edi + 0x1b8]
mov ebx, eax
call esi
cmp ebx, 0xffffffff
je 0x40cb7a
cmp eax, 0xffffffff
je 0x40cb7a
imul eax, eax, 0x54
push 0
push 0
imul ecx, ebx, 0x54
push 0xf0
push 0x416
mov eax, dword [eax + 0x571e90]
mov dword [ebp - 0x9e0], eax
mov eax, dword [edi + 4]
mov ebx, dword [ecx + 0x5719a0]
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 1
jne 0x40c967
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
lea eax, [ebp - 0x9e4]
push 1
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.0040b950
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push 0x104
push 0xd
push dword [edi + 0x1bc]
call esi
cmp word [ebp - 0x414], 0
jne 0x40c9c0
mov eax, dword [edi + 4]
push 0x30
push str.Invalid_operation
push str.You_must_provide_an_input_file
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [edi + 0x1bc]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x7ac]
push eax
push 0x104
push 0xd
push dword [edi + 0x1c0]
call esi
cmp word [ebp - 0x7ac], 0
jne 0x40ca19
mov eax, dword [edi + 4]
push 0x30
push str.Invalid_operation
push str.You_must_provide_an_output_file
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [edi + 0x1c0]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424790
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x9dc]
push eax
call fcn.00413620
lea eax, [ebp - 0x9c4]
push eax
call fcn.00413640
mov ecx, dword [edi + 0x4b8]
mov eax, dword [ecx + 0x270]
mov dword [ebp - 0x9b8], eax
mov eax, dword [ecx + 0x274]
mov dword [ebp - 0x9bc], eax
mov eax, dword [ecx + 0x278]
mov dword [ebp - 0x9b4], eax
lea eax, [ebp - 0x9c4]
push eax
call fcn.00413680
lea eax, [ebp - 0x9ac]
push eax
push 0
push 0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00470ad9
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x20c]
add esp, 0x20
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0
push 0x4e4
call esi
push 0
push 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7ac]
push eax
push 0
push 0x4e4
call esi
lea eax, [ebp - 0x9ac]
push str..RTF
push eax
call fcn.00454a72
add esp, 8
test eax, eax
jne 0x40cb10
mov eax, dword [edi + 0x4b8]
push dword [eax + 0x27c]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.00423d70
add esp, 0x14
jmp 0x40cb2d
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.004129c0
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x9dc]
push eax
call fcn.00413680
add esp, 4
test esi, esi
jne 0x40cb50
push 0x40
push str.Result
push str.Successfully_converted
jmp 0x40cb86
push esi
push str.Error__d_
lea eax, [ebp - 0x5a4]
push 0xc8
push eax
call fcn.0040d2c0
add esp, 0x10
lea eax, [ebp - 0x5a4]
push 0x30
push str.Result
push eax
jmp 0x40cb86
push 0x30
push str.Invalid_operation
push str.You_must_specify_input_and_output_charsets
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424790
mov esp, ebp
pop ebp
ret