Function at 0x418d51
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x888
mov eax, dword [0x44dcf8]
push ebx
push esi
mov dword [ebp + 0x804], eax
push edi
lea eax, [ebp - 0x50]
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
push 0xfffffffffffffff0
push dword [esi + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [esi + 4]
mov ebx, eax
mov dword [ebp], ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [ebp - 0x60], eax
mov eax, 0x10000
and ebx, eax
sub ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x418de8
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 4]
jne 0x418de8
mov dword [ebp - 0x68], 1
xor edi, edi
jmp 0x418ded
xor edi, edi
mov dword [ebp - 0x68], edi
cmp ebx, edi
je 0x418dfe
test byte [ebp], 1
mov dword [ebp - 0x6c], 1
jne 0x418e01
mov dword [ebp - 0x6c], edi
mov ebx, dword [ebp]
mov eax, 0x8000
and ebx, eax
sub ebx, eax
mov eax, dword [ebp]
neg ebx
sbb ebx, ebx
and al, 0x10
sub al, 0x10
inc ebx
neg al
push 0x400
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], edi
sbb eax, eax
inc eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp]
and al, 0x20
sub al, 0x20
neg al
mov dword [ebp - 0x3c], edi
sbb eax, eax
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp]
and al, 0x80
sub al, 0x80
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi + 0x4c]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x2c], edi
mov dword [ebp - 0x80], eax
je 0x418f82
push 0x420
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x810]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
sub edi, dword [ebp - 0x7c]
sub ecx, dword [ebp - 0x78]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ecx
jne 0x418f67
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x418f67
cmp dword [esi + 0x40], 0
je 0x418f67
test byte [ebp], 0x40
mov eax, dword [ebp - 0x28]
je 0x418f29
sub eax, dword [ebp - 0x18]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
sub eax, ecx
sub eax, 4
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub eax, edi
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x44]
sub eax, ecx
sub eax, 4
mov dword [ebp - 4], eax
jmp 0x418fa0
sub eax, edx
sub eax, edi
cdq
push 3
pop edi
idiv edi
mov edi, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
add eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
sub eax, ecx
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3c]
add eax, edi
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x418fa0
mov eax, dword [ebp - 0x28]
sub eax, edi
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
sub eax, ecx
inc eax
cdq
sub eax, edx
sar eax, 1
jmp 0x418f24
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x18]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x14]
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
call edi
push 0x14
mov dword [ebp - 0x30], eax
call edi
push 0x10
mov dword [ebp - 0x58], eax
call edi
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi + 0x44]
sub ecx, 0
push 5
pop edi
je 0x418fd6
dec ecx
je 0x419079
dec ecx
je 0x41904a
dec ecx
jne 0x418fe2
mov edi, ebx
neg edi
sbb edi, edi
and edi, 0xfffffffb
add edi, 4
cmp dword [ebp - 0x5c], 0
je 0x41912b
push 2
push 2
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp dword [esi + 0x44], 2
setne al
dec eax
and eax, 5
add eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
and dword [ebp], 0
cmp dword [ebp - 0x64], 0
mov dword [ebp - 0x54], eax
jne 0x4190eb
mov eax, dword [esi + 0x44]
cmp eax, 1
je 0x419097
test eax, eax
je 0x419097
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp], eax
jmp 0x4190cd
xor ecx, ecx
test ebx, ebx
sete cl
push eax
push dword [ebp - 0x58]
lea ecx, [ecx*8 + 2]
mov edi, ecx
call fcn.004196d4
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
inc dword [ebp - 8]
inc dword [ebp - 4]
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
jmp 0x418fe2
push dword [ebp - 0x58]
mov edi, ebx
push dword [ebp - 0x30]
neg edi
sbb edi, edi
add edi, 5
call fcn.004196d4
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
jmp 0x418fe2
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0xffffffffffffffc0
push dword [ebp - 0x34]
call fcn.0041936d
pop ecx
pop ecx
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x58]
call fcn.004193e1
add esp, 0x18
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push edi
mov dword [ebp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp], 0
je 0x4190eb
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp]
push dword [ebp - 0x30]
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_FrameRgn]
test ebx, ebx
je 0x4190fb
mov eax, dword [esi + 0x44]
test eax, eax
je 0x419111
cmp eax, 3
je 0x419111
push 1
push 1
push dword [ebp - 0x54]
push dword [ebp - 0x30]
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_FrameRgn]
cmp dword [ebp], 0
je 0x419120
push dword [ebp]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x419143
cmp edi, 0xffffffff
je 0x419143
push 0xf
push edi
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x810]
call dword [sym.imp.USER32.dll_DrawEdge]
cmp dword [ebp - 0x38], 0
jne 0x4191c6
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4191c6
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov eax, dword [esi + 0x44]
mov edi, dword [esi + eax*4 + 0x2c]
cmp edi, 0xffffffff
jne 0x419165
xor edi, edi
cmp dword [ebp - 0x60], 0
jne 0x4191ae
cmp edi, 3
je 0x4191ae
push 0
push edi
push dword [esi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x54], eax
je 0x4191ae
push 0x23
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ecx
push eax
push ecx
push ecx
push dword [ebp + 0x810]
call dword [sym.imp.USER32.dll_DrawStateW]
push dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x4191c6
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x810]
push edi
push dword [esi + 0x28]
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
cmp dword [ebp - 0x2c], 0
je 0x419346
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
call edi
push 1
push dword [ebp + 0x810]
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x44], 1
jne 0x4191f8
push 0xd
call edi
mov dword [ebp - 0x38], eax
xor esi, esi
cmp dword [ebp - 0x60], esi
jne 0x419224
push 0x22
push dword [ebp - 0x3c]
lea eax, [ebp + 4]
push dword [ebp - 0x40]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x2c]
push eax
push esi
push esi
push dword [ebp + 0x810]
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4192a3
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x3c]
add edx, ecx
cmp dword [ebp - 0x6c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
je 0x41927c
inc eax
inc ecx
push 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call edi
push eax
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x810]
call dword [sym.imp.USER32.dll_DrawTextW]
dec dword [ebp - 0x20]
dec dword [ebp - 0x1c]
push dword [ebp - 0x38]
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x810]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0x68], esi
je 0x419346
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [ebp - 0x64], esi
je 0x4192e1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
add eax, ecx
push eax
mov eax, dword [ebp - 8]
add edx, eax
push edx
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 1
push 1
jmp 0x41930a
cmp dword [ebp - 0x5c], esi
je 0x4192fc
push 0xfffffffffffffffe
push 0xfffffffffffffffe
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
dec dword [ebp - 0x18]
dec dword [ebp - 0x14]
jmp 0x419314
cmp ebx, esi
je 0x419306
push 0xfffffffffffffffe
push 0xfffffffffffffffe
jmp 0x41930a
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x810]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x80]
push dword [ebp + 0x810]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x804]
pop edi
pop esi
pop ebx
call fcn.0042da10
add ebp, 0x808
leave
ret 4