Function at 0x4168ec
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
push 2
lea eax, [ebp - 0x17]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x27]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetClientRect
mov bl, byte [ebp - 0x17]
sub bl, 0x30
push 5
call sub.gdi32.dll_GetStockObject
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
mov al, byte [0x4935fa]
cmp al, 3
jne 0x41693b
mov bl, 3
cmp al, 4
jne 0x416941
mov bl, 4
push 0x14
call sub.user32.dll_GetSysColor
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov edi, eax
push 0x10
call sub.user32.dll_GetSysColor
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x10], eax
cmp bl, 1
jne 0x416979
push edi
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
jmp 0x416986
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
cmp bl, 2
ja 0x416b19
cmp byte [0x4935fa], 0
jne 0x4169aa
mov eax, dword [0x499190]
mov dword [ebp - 4], eax
mov eax, dword [0x499194]
mov dword [ebp - 8], eax
jmp 0x4169ba
mov eax, dword [0x49918c]
mov dword [ebp - 4], eax
mov eax, dword [0x4991a0]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x27]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x1b]
sub cx, 2
mov dx, word [ebp - 0x23]
mov eax, esi
call fcn.00415268
cmp byte [0x4935fa], 2
jne 0x416a0e
mov ax, word [ebp - 0x27]
inc eax
push eax
mov eax, dword [0x499188]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x1b]
sub cx, 3
mov dx, word [ebp - 0x23]
mov eax, esi
call fcn.00415268
mov ax, word [ebp - 0x1f]
dec eax
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x23]
inc ecx
mov dx, word [ebp - 0x1b]
mov eax, esi
call fcn.00415268
cmp byte [0x4935fa], 2
jne 0x416a63
mov ax, word [ebp - 0x1f]
sub ax, 2
push eax
mov eax, dword [0x499194]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x23]
add cx, 2
mov dx, word [ebp - 0x1b]
mov eax, esi
call fcn.00415268
mov ax, word [ebp - 0x23]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x1f]
sub cx, 2
mov dx, word [ebp - 0x27]
inc edx
mov eax, esi
call fcn.00415100
cmp byte [0x4935fa], 2
jne 0x416abc
mov ax, word [ebp - 0x23]
inc eax
push eax
mov eax, dword [0x499188]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x1f]
sub cx, 3
mov dx, word [ebp - 0x27]
add dx, 2
mov eax, esi
call fcn.00415100
mov ax, word [ebp - 0x1b]
dec eax
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x27]
inc ecx
mov dx, word [ebp - 0x1f]
sub dx, 2
mov eax, esi
call fcn.00415100
cmp byte [0x4935fa], 2
jne 0x416b19
mov ax, word [ebp - 0x1b]
sub ax, 2
push eax
mov eax, dword [0x499194]
push eax
mov eax, dword [0x49919c]
push eax
push 0x46
mov cx, word [ebp - 0x27]
add cx, 2
mov dx, word [ebp - 0x1f]
sub dx, 3
mov eax, esi
call fcn.00415100
cmp bl, 3
jne 0x416b5f
push edi
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
push eax
mov eax, dword [ebp - 0x1f]
push eax
mov eax, dword [ebp - 0x23]
inc eax
push eax
mov eax, dword [ebp - 0x27]
inc eax
push eax
push esi
call sub.gdi32.dll_Rectangle
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
dec eax
push eax
mov eax, dword [ebp - 0x1f]
dec eax
push eax
mov eax, dword [ebp - 0x23]
push eax
mov eax, dword [ebp - 0x27]
push eax
push esi
call sub.gdi32.dll_Rectangle
cmp bl, 4
jne 0x416ba5
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
push eax
mov eax, dword [ebp - 0x1f]
push eax
mov eax, dword [ebp - 0x23]
inc eax
push eax
mov eax, dword [ebp - 0x27]
inc eax
push eax
push esi
call sub.gdi32.dll_Rectangle
push edi
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
dec eax
push eax
mov eax, dword [ebp - 0x1f]
dec eax
push eax
mov eax, dword [ebp - 0x23]
push eax
mov eax, dword [ebp - 0x27]
push eax
push esi
call sub.gdi32.dll_Rectangle
cmp bl, 1
jne 0x416bb6
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
jmp 0x416bbd
push edi
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.gdi32.dll_SelectObject
push edi
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret