Function at 0x40ba40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e4
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040c2e0
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 0x40bd0e
cmp eax, 0xffffffff
je 0x40bd0e
imul eax, eax, 0x54
push 0
push 0
imul ecx, ebx, 0x54
push 0xf0
push 0x416
mov eax, dword [eax + 0x452e38]
mov dword [ebp - 0x9e0], eax
mov eax, dword [edi + 4]
mov ebx, dword [ecx + 0x452948]
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 1
jne 0x40bb07
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.0040abf0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
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 0x40bb60
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.0041cc0e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x61c]
push eax
push 0x104
push 0xd
push dword [edi + 0x1c0]
call esi
cmp word [ebp - 0x61c], 0
jne 0x40bbb9
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.0041cc0e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x9dc]
push eax
call fcn.00411030
lea eax, [ebp - 0x9c4]
push eax
call fcn.00411060
mov ecx, dword [edi + 0x36c]
mov eax, dword [ecx + 0x5c]
mov dword [ebp - 0x9b8], eax
mov eax, dword [ecx + 0x60]
mov dword [ebp - 0x9bc], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x9b4], eax
lea eax, [ebp - 0x9c4]
push eax
call fcn.004110a0
lea eax, [ebp - 0x9ac]
push eax
push 0
push 0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0041df00
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 - 0x61c]
push eax
push 0
push 0x4e4
call esi
lea eax, [ebp - 0x9ac]
push str..RTF
push eax
call fcn.0041d2d8
add esp, 8
test eax, eax
jne 0x40bca4
mov eax, dword [edi + 0x36c]
push dword [eax + 0x68]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.0041c2d0
add esp, 0x14
jmp 0x40bcc1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.00410620
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x9dc]
push eax
call fcn.004110a0
add esp, 4
test esi, esi
jne 0x40bce4
push 0x40
push str.Result
push str.Successfully_converted
jmp 0x40bd1a
push esi
push str.Error__d_
lea eax, [ebp - 0x7ac]
push 0xc8
push eax
call fcn.0041d96b
add esp, 0x10
lea eax, [ebp - 0x7ac]
push 0x30
push str.Result
push eax
jmp 0x40bd1a
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.0041cc0e
mov esp, ebp
pop ebp
ret