Function at 0x40ad30
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4114f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x66
push esi
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
xorps xmm0, xmm0
mov dword [ebp - 0x58], eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, 0
mov dword [ebp - 0x18], 0
mov edi, eax
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov eax, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], eax
add edi, 1
je 0x40ae4c
cmp edi, 0x7fffffff
ja 0x40af4b
cmp edi, 0x1000
jb 0x40ae23
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x40af50
push eax
call fcn.0041004f
add esp, 4
test eax, eax
je 0x40af1d
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40ae2e
push edi
call fcn.0041004f
add esp, 4
mov esi, eax
push edi
lea eax, [esi + edi]
mov dword [ebp - 0x20], esi
push 0
push esi
mov dword [ebp - 0x18], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x5c], esi
push edi
push esi
push dword [ebp - 0x58]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp - 0x5c]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x58], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ae80
sub ecx, dword [ebp - 0x58]
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.0040e720
cmp dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x3c]
push 0
push ecx
push edi
mov edi, dword [ebp - 0x60]
lea eax, [ebp - 0x38]
cmova eax, dword [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x40aee8
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aede
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af1d
push ecx
push edx
call fcn.0041007f
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
test esi, esi
je 0x40af2d
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40af23
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40af23
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0041007f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041003c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040f3b0
call fcn.00405930
int3