Function at 0x401aa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4315b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp + 8]
add eax, 0x1c
mov ecx, dword [eax]
mov dword [ebp - 0xe4], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0xe0], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xdc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xec], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf0]
and ecx, 1
je 0x401b3c
mov dword [ebp - 0xd4], 0x200
mov edx, dword [ebp - 0xf4]
add edx, 1
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 0xf0]
and eax, 4
je 0x401b53
mov dword [ebp - 0xe8], 0x20
jmp 0x401b5d
mov dword [ebp - 0xe8], 0
cmp dword [ebp - 0xf8], 4
jne 0x401b70
mov dword [ebp - 0xec], 1
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x44], 0
je 0x401b8d
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [ebp - 0xec], 0
jne 0x401f5c
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x44], 0
je 0x401bff
push 7
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [ebp - 0xfc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x8000
je 0x401c29
mov eax, dword [ebp - 0xd4]
or eax, 0x4000
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
or ecx, 0x10
push ecx
push 4
lea edx, [ebp - 0xe4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DrawFrameControl]
push 0x64
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebp - 0x144]
xor eax, eax
cmp dword [edx + 0x38], 0
setne al
test eax, eax
je 0x401d80
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x18], 0
je 0x401cc9
movzx edx, word [ebp - 0xd0]
test edx, edx
jne 0x401c9c
mov dword [ebp - 0x148], 0xffffffff
jmp 0x401cb1
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xe4]
add ecx, dword [eax + 0x2c]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x100], 0xffffffff
jmp 0x401ce1
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 0x3c]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x144]
call fcn.00401a40
mov edx, dword [ebp - 0x104]
add edx, dword [ebp - 0xf4]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x100]
add eax, dword [ebp - 0xf4]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x38], 0
je 0x401d80
mov edx, dword [ebp - 0xe8]
or edx, 3
push edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0x104]
push edx
push 0
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x38]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
movzx ecx, word [ebp - 0xd0]
test ecx, ecx
je 0x401f5c
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0xd0]
push eax
call fcn.004129b4
add esp, 4
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [ebp - 0x144]
cmp dword [ecx + 0x18], 0
je 0x401e7e
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x144]
xor eax, eax
cmp dword [edx + 0x38], 0
setne al
test eax, eax
je 0x401e68
mov ecx, dword [ebp - 0x124]
sub ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 0x3c]
mov edx, dword [ebp - 0x144]
add eax, dword [edx + 0x30]
mov edx, dword [ebp - 0x144]
add eax, dword [edx + 0x2c]
sub ecx, eax
sub ecx, dword [ebp - 0x118]
test ecx, ecx
jle 0x401e4a
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x144]
add ecx, dword [edx + 0x30]
mov eax, dword [ebp - 0x144]
add ecx, dword [eax + 0x2c]
mov dword [ebp - 0x110], ecx
jmp 0x401e66
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x2c]
lea edx, [edx + ecx + 2]
mov dword [ebp - 0x110], edx
jmp 0x401e72
mov dword [ebp - 0x110], 0xffffffff
mov dword [ebp - 0x10c], 0xffffffff
jmp 0x401e96
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], edx
xor eax, eax
cmp dword [ebp - 0x10c], 0xffffffff
setne al
sub eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.00401a40
mov ecx, dword [ebp - 0x110]
add ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0xf4]
add edx, dword [ebp - 0x11c]
add edx, dword [ebp - 0x10c]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0xe8]
or ecx, 2
push ecx
push 0
push 0
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0xd0]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 0xf0]
and ecx, 4
jne 0x402096
mov edx, dword [ebp - 0xf0]
and edx, 0x10
je 0x402096
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x138]
sub ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x134]
sub edx, dword [ebp - 0x13c]
cmp ecx, edx
jge 0x401fda
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0x140]
mov dword [ebp - 0x14c], eax
jmp 0x401fec
mov ecx, dword [ebp - 0x134]
sub ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
sar edx, 2
cmp edx, 3
jle 0x402006
mov dword [ebp - 0x150], 3
jmp 0x402057
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x134]
sub ecx, dword [ebp - 0x13c]
cmp eax, ecx
jge 0x402036
mov edx, dword [ebp - 0x138]
sub edx, dword [ebp - 0x140]
mov dword [ebp - 0x154], edx
jmp 0x402048
mov eax, dword [ebp - 0x134]
sub eax, dword [ebp - 0x13c]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
sar ecx, 2
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
neg eax
push eax
mov ecx, dword [ebp - 0x130]
neg ecx
push ecx
lea edx, [ebp - 0x140]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xf8]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0xf0]
mov dword [edx + 0x4c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041256e
mov esp, ebp
pop ebp
ret 4