Function at 0x4380b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4923db
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x850], esi
cmp dword [esi + 0x1a8], ebx
je 0x438357
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x438115
mov ecx, dword [esi + 0x1a8]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x438357
mov eax, dword [esi + 0x1a8]
push 0x400
lea edx, [ebp - 0x810]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x838], 7
mov dword [ebp - 0x83c], ebx
mov word [ebp - 0x84c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438150
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea esi, [ebp - 0x84c]
call fcn.00409bc0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x83c]
push 0x49be3c
xor edi, edi
mov ecx, esi
call fcn.004041a0
test eax, eax
je 0x438325
mov eax, dword [ebp - 0x83c]
push str.Done
mov edi, 4
mov ecx, esi
call fcn.004041a0
test eax, eax
je 0x438325
mov esi, dword [ebp - 0x850]
mov edx, dword [esi + 0x1a8]
push edx
mov dword [ebp - 0x858], ebx
mov dword [ebp - 0x854], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov eax, dword [esi + 0x1a4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4381e7
sub eax, edx
lea ecx, [ebp - 0x858]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x810]
push edx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x830]
push eax
push ecx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x814], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x854]
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x830]
mov edx, dword [ebp - 0x858]
sub ecx, edi
mov dword [ebp - 0x81c], ecx
add ecx, edi
mov dword [ebp - 0x814], ecx
mov ecx, dword [ebp - 0x828]
add edx, eax
sub ecx, eax
mov dword [ebp - 0x818], edx
sub edx, eax
lea edi, [ecx - 0x14]
mov dword [ebp - 0x820], eax
cmp edx, edi
jle 0x4382a6
lea eax, [ecx + eax - 0x14]
mov dword [ebp - 0x818], eax
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [ebp - 0x820]
push ecx
push edx
call edi
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x818]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x820]
push 1
sub edx, eax
push edx
mov edx, dword [ebp - 0x818]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x1a8]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x1a8]
push 3
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0x1a8]
push 4
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [ebp - 0x84c]
call fcn.00403060
jmp 0x438357
mov eax, dword [ebp - 0x850]
mov ecx, dword [eax + 0x1a8]
push 0x10002
push 0x64
push ecx
call dword [sym.imp.USER32.dll_AnimateWindow]
cmp dword [ebp - 0x838], 8
jb 0x438357
mov edx, dword [ebp - 0x84c]
push edx
call fcn.004736d0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret