Function at 0x40c420
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9e4
mov eax, dword [0x4cff04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040cd30
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 0x40c6fa
cmp eax, 0xffffffff
je 0x40c6fa
imul eax, eax, 0x54
push 0
push 0
imul ecx, ebx, 0x54
push 0xf0
push 0x416
mov eax, dword [eax + 0x4cafb8]
mov dword [ebp - 0x9e0], eax
mov eax, dword [edi + 4]
mov ebx, dword [ecx + 0x4caac8]
mov eax, dword [eax + 4]
push dword [eax + edi + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 1
jne 0x40c4e7
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.0040b4e0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b40
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 0x40c540
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.00420b40
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 0x40c599
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.00420b40
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x9dc]
push eax
call fcn.00412c90
lea eax, [ebp - 0x9c4]
push eax
call fcn.00412cb0
mov ecx, dword [edi + 0x4b8]
mov eax, dword [ecx + 0x268]
mov dword [ebp - 0x9b8], eax
mov eax, dword [ecx + 0x26c]
mov dword [ebp - 0x9bc], eax
mov eax, dword [ecx + 0x270]
mov dword [ebp - 0x9b4], eax
lea eax, [ebp - 0x9c4]
push eax
call fcn.00412cf0
lea eax, [ebp - 0x9ac]
push eax
push 0
push 0
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0045d42c
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.0044a808
add esp, 8
test eax, eax
jne 0x40c690
mov eax, dword [edi + 0x4b8]
push dword [eax + 0x274]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.00420170
add esp, 0x14
jmp 0x40c6ad
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x9e0]
push ebx
call fcn.00412010
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x9dc]
push eax
call fcn.00412cf0
add esp, 4
test esi, esi
jne 0x40c6d0
push 0x40
push str.Result
push str.Successfully_converted
jmp 0x40c706
push esi
push str.Error__d_
lea eax, [ebp - 0x5a4]
push 0xc8
push eax
call fcn.0040ce30
add esp, 0x10
lea eax, [ebp - 0x5a4]
push 0x30
push str.Result
push eax
jmp 0x40c706
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.00420b40
mov esp, ebp
pop ebp
ret