Function at 0x40a1c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4192b5
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4210a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, eax
je 0x40a204
lea ecx, [esi - 0x20]
mov dword [ebp - 0xb8], ecx
jmp 0x40a20a
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xa4]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ebx, [esi + 0xc]
push ebx
lea eax, [esi + 4]
call fcn.00404980
mov edx, dword [ebp - 0xa4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0xa0]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x9c]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x98]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 4]
push ecx
push edx
call fcn.0040a730
push ebx
lea eax, [esi + 8]
call fcn.00404980
mov edx, dword [ebp - 0xa4]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0xa0]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x9c]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x98]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 8]
push ecx
push edx
call fcn.0040a730
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
push 0
push 0
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
test edi, edi
je 0x40a34c
mov edx, dword [ebp + 8]
push 3
push 0
push 0
push 0x32
mov dword [ebp - 0xbc], edx
call ebx
push eax
push 0x31
call ebx
push eax
push edi
push 0x32
call ebx
mov ecx, 0x1b
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xbc]
sar eax, 1
push eax
push 4
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x92]
push ecx
mov word [ebp - 0x94], ax
call fcn.0040c8a0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 4]
add esp, 0xc
push 0x40
lea edx, [ebp - 0x94]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x94], 0
je 0x40a455
mov edi, dword [ebp - 0x9c]
push 0x31
add edi, 0xfffffffc
call ebx
add eax, 7
push 0x11
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x1b
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edx
call edi
mov ebx, eax
mov eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [esi + 0x70]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push ecx
mov dword [ebp - 0xb8], eax
call esi
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x94]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40a406
push 0x24
sub eax, ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xb4]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0xbc]
mov eax, dword [ebp + 8]
push edx
push eax
call esi
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp + 8]
push ebx
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bbb3
mov esp, ebp
pop ebp
ret 4