Function at 0x405d90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x40]
push 0x104
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 4]
xor edx, edx
mov dword [esp + 0x24], edx
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 0x54]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ecx
push ebx
call edi
mov ebp, eax
lea edx, [esp + 0x20]
push 0x400
lea eax, [esp + 0x44]
push edx
push eax
call fcn.0041009c
add esp, 4
lea ecx, [esp + 0x48]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push ebp
push ebx
call edi
lea edi, [esi + 0x34]
mov ebp, dword [esi + 0x4c]
mov eax, edi
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
sub eax, ecx
lea ecx, [edx + eax + 0x1e]
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jle 0x405e58
mov ecx, ebp
mov dword [esp + 0x18], ecx
mov ebp, ecx
sub ebp, edx
lea ecx, [ebp - 0x1e]
test ecx, ecx
jg 0x405e6e
mov ecx, ebp
test ecx, ecx
jg 0x405e6e
mov ecx, 1
cmp eax, ecx
mov ebp, 1
jle 0x405e80
mov edx, ecx
add edx, ecx
inc ebp
cmp eax, edx
jg 0x405e79
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
sub ecx, eax
mov edx, dword [esp + 0x14]
imul ecx, ebp
mov eax, dword [esi + 0x50]
lea ecx, [ecx + edx + 0x1e]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jle 0x405ea4
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_CopyRect]
lea ebx, [esi + 0x24]
xor ebp, ebp
mov dword [esi + 0x28], ebp
mov dword [ebx], ebp
mov edx, dword [edi + 8]
sub edx, dword [edi]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esi + 0x30], eax
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, ebp
inc eax
inc edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
dec ecx
dec eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405f5b
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebp
push edx
push ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x405f5b
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
test eax, eax
mov eax, dword [edi + 4]
push 6
sub ecx, eax
mov eax, dword [edi]
sub edx, eax
mov eax, dword [esi + 4]
push ecx
push edx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 4]
push ebx
push ebp
push 0xb3
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret