Function at 0x406fa0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x120
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp byte [esi + 0x38], 0
push ebx
push ebp
mov ebx, edx
push edi
mov edi, ecx
mov dword [esp + 0x10], ebx
je 0x406fdf
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00416a72
add esp, 0x120
ret
push ebx
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebp, eax
cmp ebp, 0x100
mov dword [esp + 0x18], ebp
jle 0x407024
lea eax, [ebp + 0x10]
push eax
call fcn.00416def
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x407042
inc ebp
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
jmp 0x407042
push 0x100
lea edx, [esp + 0x20]
push edx
push ebx
mov byte [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
movzx ecx, byte [edi]
mov byte [esi + 0x39], cl
movzx edx, byte [edi + 1]
mov byte [esi + 0x3a], dl
mov ecx, dword [edi + 4]
mov dword [esi + 0x3b], ecx
movzx edx, byte [edi + 8]
mov byte [esi + 0x3f], dl
movzx ecx, byte [edi + 0xa]
mov byte [esi + 0x49], cl
mov edx, dword [edi + 0xc]
mov dword [esi + 0x4a], edx
movzx ecx, byte [edi + 9]
lea eax, [esi + 0x39]
mov byte [esi + 0x48], cl
mov edx, dword [edi + 0x10]
mov dword [esi + 0x4e], edx
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x52], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x56], edx
movzx ecx, byte [edi + 0x1c]
mov byte [esi + 0x5a], cl
mov edx, dword [edi + 0x20]
mov dword [esi + 0x5b], edx
movzx ecx, byte [edi + 0x24]
mov byte [esi + 0x5f], cl
movzx edx, byte [edi + 0x25]
mov byte [esi + 0x74], dl
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x75], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x79], edx
movzx ecx, byte [edi + 0x30]
mov byte [esi + 0x9e], cl
movzx edx, byte [edi + 0x31]
mov byte [esi + 0x9f], dl
mov ecx, dword [edi + 0x34]
mov dword [esi + 0xa0], ecx
movzx edx, byte [edi + 0x38]
lea ebp, [esi + 0x9e]
mov byte [esi + 0xa4], dl
movzx ecx, byte [edi + 0x3a]
mov byte [esi + 0xae], cl
mov edx, dword [edi + 0x3c]
mov dword [esi + 0xaf], edx
movzx ecx, byte [edi + 0x39]
mov byte [esi + 0xad], cl
mov edx, dword [edi + 0x40]
mov dword [esi + 0xb3], edx
mov ecx, dword [edi + 0x44]
mov dword [esi + 0xb7], ecx
mov edx, dword [edi + 0x48]
mov dword [esi + 0xbb], edx
movzx ecx, byte [edi + 0x4c]
mov byte [esi + 0xbf], cl
mov edx, dword [edi + 0x50]
mov dword [esi + 0xc0], edx
movzx ecx, byte [edi + 0x54]
mov byte [esi + 0xc4], cl
movzx edx, byte [edi + 0x55]
mov byte [esi + 0xd9], dl
mov ecx, dword [edi + 0x58]
mov dword [esi + 0xda], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0xde], edx
mov edi, 0x65
mov ecx, eax
mov edx, ebp
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x40716d
sub edi, 4
add ecx, 4
add edx, 4
cmp edi, 4
jae 0x407153
mov cl, byte [ecx]
cmp cl, byte [edx]
je 0x407171
mov byte [esi + 0x1f], 1
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push ebx
push edi
mov byte [esi + 0x20], 1
mov byte [esi + 0x1d], 0
mov dword [esi + 0x15], 0
call fcn.004080f0
add esp, 0xc
cmp byte [esi + 0x1f], 0
je 0x4071ae
mov ecx, dword [esp + 0x10]
push esi
push ebx
push edi
mov eax, ebp
call fcn.004080f0
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
call fcn.00416ce5
mov ecx, dword [esp + 0x12c]
add esp, 4
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00416a72
add esp, 0x120
ret