Function at 0x40c7f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0c], ecx
mov ecx, dword [ebp - 0xa0c]
call fcn.0040bc60
push 0
push 0
push 0x147
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + 0x1b4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x218], eax
push 0
push 0
push 0x147
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 0x1b8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x55c], eax
cmp dword [ebp - 0x218], 0xffffffff
je 0x40c86a
cmp dword [ebp - 0x55c], 0xffffffff
jne 0x40c898
push 0x30
push str.Invalid_operation
push str.You_must_specify_input_and_output_charsets
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + eax + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cbf9
mov eax, dword [ebp - 0x218]
imul eax, eax, 0x54
mov ecx, dword [eax + 0x42e998]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x55c]
imul edx, edx, 0x54
mov eax, dword [edx + 0x42ee88]
mov dword [ebp - 0x55c], eax
push 0
push 0
push 0xf0
push 0x416
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + eax + 8]
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x214], eax
je 0x40c93a
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + edx + 8]
push ecx
push 1
lea edx, [ebp - 0x874]
push edx
mov eax, dword [ebp - 0x55c]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.0040cff0
add esp, 0x14
jmp 0x40cbf9
lea edx, [ebp - 0x558]
push edx
push 0x104
push 0xd
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + 0x1bc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [ebp - 0x558]
test edx, edx
jne 0x40c9a7
push 0x30
push str.Invalid_operation
push str.You_must_provide_an_input_file
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + edx + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 0x1bc]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40cbf9
lea ecx, [ebp - 0x210]
push ecx
push 0x104
push 0xd
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 0x1c0]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [ebp - 0x210]
test ecx, ecx
jne 0x40ca14
push 0x30
push str.Invalid_operation
push str.You_must_provide_an_output_file
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + ecx + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + 0x1c0]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40cbf9
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvGetOptions_struct__VnConvOptions__]
add esp, 4
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvResetOptions_struct__VnConvOptions__]
add esp, 4
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 0x36c]
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x344], ecx
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 0x36c]
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0xa0c]
mov eax, dword [edx + 0x36c]
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x340], ecx
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
add esp, 4
lea eax, [ebp - 0x760]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x558]
push ecx
call fcn.00413664
add esp, 0x14
push 0
push 0
push 0x104
lea edx, [ebp - 0x870]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x558]
push eax
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x104
lea ecx, [ebp - 0x338]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x210]
push edx
push 0
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push str..RTF
lea eax, [ebp - 0x760]
push eax
call fcn.00412b85
add esp, 8
test eax, eax
jne 0x40cb3f
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + 0x36c]
mov eax, dword [edx + 0x60]
push eax
lea ecx, [ebp - 0x338]
push ecx
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x55c]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.00411b00
add esp, 0x14
mov dword [ebp - 0x764], eax
jmp 0x40cb6a
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x870]
push eax
mov ecx, dword [ebp - 0x55c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.UKHook40.dll_VnFileConvert]
add esp, 0x10
mov dword [ebp - 0x764], eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.UKHook40.dll_void___cdecl_VnConvSetOptions_struct__VnConvOptions__]
add esp, 4
cmp dword [ebp - 0x764], 0
jne 0x40cbae
push 0x40
push str.Result
push str.Successfully_converted
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0xa0c]
mov edx, dword [ecx + eax + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40cbf9
mov eax, dword [ebp - 0x764]
push eax
push str.Error__d_
push 0xc8
lea ecx, [ebp - 0xa08]
push ecx
call fcn.00412d8e
add esp, 0x10
push 0x30
push str.Result
lea edx, [ebp - 0xa08]
push edx
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [eax + edx + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041256e
mov esp, ebp
pop ebp
ret