Function at 0x402acd
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x3fc]
sub esp, 0x47c
mov eax, dword [0x4205cc]
xor eax, ebp
mov dword [ebp + 0x3f8], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov ebx, ecx
push 0x3ea
push ebx
mov dword [ebp - 0x34], ebx
call esi
push 0x3e8
mov edi, eax
push ebx
mov dword [ebp - 0x18], edi
call esi
mov dword [ebp - 0x1c], eax
push 0x400
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x402c79
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.USER32.dll_GetDC]
xor edi, edi
push edi
push edi
push 0x31
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
je 0x402b5b
push eax
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
push 0x520
lea eax, [ebp - 0x54]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_DrawTextW]
test eax, eax
je 0x402c5c
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
sub esi, dword [ebp - 0x38]
sub eax, dword [ebp - 0x54]
sub esi, dword [ebp - 0x50]
add eax, dword [ebp - 0x4c]
add esi, dword [ebp - 0x48]
cmp eax, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
jge 0x402ba2
mov dword [ebp - 0x10], edi
mov eax, edi
cmp esi, edi
jge 0x402bab
mov dword [ebp - 0xc], edi
mov esi, edi
cmp eax, edi
jg 0x402bb7
cmp esi, edi
jle 0x402c5c
lea eax, [ebp - 0x2c]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
call ebx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 6
add eax, esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [ebp - 0x34]
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 6
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
call ebx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 6
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x80], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
push 5
push edi
push edi
add eax, ecx
push eax
push dword [ebp - 0x64]
push edi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x30], edi
je 0x402c6d
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp + 0x3f8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406041
add ebp, 0x3fc
leave
ret