Function at 0x402e20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ef0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], 0
push 0x206
push eax
mov word [ebp - 0x320], ax
mov esi, ecx
lea eax, [ebp - 0x31e]
push eax
call fcn.00408c80
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x58
push 0
push eax
call fcn.00408c80
add esp, 0xc
mov dword [ebp - 0x118], 0x58
lea eax, [ebp - 0x320]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10c], str.Text_Files__.txt_
push eax
mov dword [ebp - 0xf8], 0x104
mov dword [ebp - 0xe4], 0x802
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4030d8
mov esi, dword [ebp - 0xfc]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0xc0], 0x4271bc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xbc]
push ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x58], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x5c], 0x60
call fcn.00405730
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.00405320
push ecx
push 2
push esi
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.004051e0
test eax, eax
jne 0x402fcc
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402330
mov dword [ebp - 4], 4
cmp dword [ebp - 0x70], 0
je 0x403065
push dword [0x42be00]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
mov edx, 2
lea edi, [eax + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407313
add esp, 4
mov esi, eax
push edi
push esi
push dword [0x42be00]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, esi
lea ecx, [ebp - 0xc0]
call fcn.00405a70
push esi
call fcn.004072d0
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.004050e0
test eax, eax
jne 0x403065
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402330
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.00404510
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00406df6
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret