Function at 0x4182f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x2050
call fcn.004c4260
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x204c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x205c]
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4186b9
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 4], eax
jne 0x4186b9
mov ecx, dword [ebp + 0x34]
cmp dword [ecx - 0xc], 0
lea edi, [ebp + 0x34]
jne 0x418373
xor edx, edx
push 0x2000
push edx
lea eax, [esp + 0x5a]
push eax
mov word [esp + 0x5c], dx
call fcn.004ab3f0
mov edx, dword [ebp + 4]
add esp, 0xc
push 0x1000
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x50]
call fcn.00405c20
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
mov ecx, eax
and ecx, 0x10
mov edi, eax
mov dword [esp + 0x48], ecx
mov ecx, eax
shr eax, 9
not eax
and eax, 1
add esi, 0x1c
mov dword [esp + 0x4c], eax
push esi
lea eax, [esp + 0x18]
and ecx, 4
and edi, 1
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_CopyRect]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
test edi, edi
je 0x418490
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 5
push 5
push ecx
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x24]
push edx
push eax
push ecx
mov dword [esp + 0x5c], esi
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 1
push 1
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_FrameRgn]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x4c]
lea edx, [esp + 0x3c]
push edx
lea esi, [esp + 0x18]
call fcn.004186e0
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x41843c
push edi
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x418447
push eax
call esi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebp + 0x34]
cmp dword [eax - 0xc], 0
je 0x41860a
test edi, edi
je 0x41850e
cmp byte [ebp + 0x3d], 0
jne 0x41850e
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
push 1
push 1
lea ecx, [esp + 0x1c]
push ecx
call edi
jmp 0x418514
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 5
push 5
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebp + 0x48]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x44]
lea esi, [esp + 0x18]
call fcn.004186e0
mov edx, dword [ebp + 0x5c]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 1
push 1
mov esi, eax
mov eax, dword [esp + 0x2c]
push esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_FrameRgn]
test esi, esi
je 0x4184f6
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41844b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x41844b
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
push 0x411
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x34]
push 0xffffffffffffffff
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x2c]
push ecx
push ebx
mov dword [esp + 0x48], edx
call esi
xor ecx, ecx
cmp dword [ebp + 0x40], ecx
je 0x418569
cmp byte [ebp + 0x3f], cl
je 0x418563
mov ecx, 0xfffffffc
sub ecx, dword [ebp + 0x2c]
jmp 0x418569
mov ecx, dword [ebp + 0x2c]
add ecx, 2
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x18]
add eax, ecx
add eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
call edi
cmp dword [esp + 0x38], 0
je 0x4185ef
push 1
push 1
lea eax, [esp + 0x30]
push eax
call edi
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push ebx
call edi
mov edx, dword [ebp + 0x34]
push 0x11
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
push edx
push ebx
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call edi
jmp 0x4185fa
mov eax, dword [ebp + 0x54]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebp + 0x34]
push 0x11
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
push edx
push ebx
call esi
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x418685
mov eax, dword [ebp + 0x34]
cmp dword [eax - 0xc], 0
jne 0x41862e
mov eax, dword [esp + 0x1c]
sub eax, dword [ebp + 0x2c]
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x418647
cmp byte [ebp + 0x3f], 0
je 0x41863d
mov esi, dword [ebp + 0x58]
add esi, dword [esp + 0x30]
jmp 0x418647
mov esi, dword [esp + 0x28]
sub esi, dword [ebp + 0x58]
sub esi, dword [ebp + 0x2c]
mov eax, dword [esp + 0x20]
sub eax, dword [ebp + 0x30]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp dword [esp + 0x38], 0
je 0x418673
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, 1
jle 0x418673
mov eax, 1
jmp 0x418675
xor eax, eax
mov ecx, dword [ebp + 0x40]
push 0
push edi
push esi
push ebx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
cmp dword [esp + 0x48], 0
je 0x4186ae
cmp dword [esp + 0x4c], 0
je 0x4186ae
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
test ebx, ebx
je 0x4186b9
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x205c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a52a5
add esp, 0x2050
ret 4