Function at 0x59839ec4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x5983a384
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x59839f5c
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x59839f5c
mov edx, esi
mov eax, dword [ebp - 0x10]
call fcn.598399f4
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x59839f4e
lea eax, [ebp - 0x10]
mov ecx, ebx
mov edx, esi
call fcn.59839a4c
jmp 0x59839f5c
mov edx, esi
shr edx, 1
lea eax, [ebp - 0x10]
mov ecx, ebx
call fcn.59839a4c
test edi, edi
je 0x59839f6b
mov esi, edi
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x59839f78
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x59839fce
mov esi, 2
cmp byte [ebp + 0xc], 0
je 0x59839fae
push 0x210
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_DrawFrameControl
jmp 0x59839fc2
push 0x10
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_DrawFrameControl
push 0x15
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x14], eax
jmp 0x59839ffc
xor esi, esi
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_CreateSolidBrush
mov ebx, eax
push ebx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_FillRect
push ebx
call sub.gdi32.dll_DeleteObject
push 0xf
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp + 0x1c]
jne 0x5983a0e2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
je 0x5983a0e2
cmp dword [ebp + 0x14], 0xffffffff
je 0x5983a027
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x74], edx
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x74]
push ebp
push esi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, edi
call fcn.59839e44
pop ecx
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x5983a0e2
mov eax, dword [ebp - 0x14]
and eax, 0xff00
mov dword [ebp - 0x18], eax
and dword [ebp - 0x14], 0xff00ff
mov eax, dword [ebp - 0x10]
and eax, 0xff00
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
and eax, 0xff00ff
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov eax, 4
sub eax, ebx
imul dword [ebp - 0x14]
mov edx, ebx
imul edx, dword [ebp - 0x1c]
add eax, edx
shr eax, 2
and eax, 0xff00ff
mov edx, 4
sub edx, ebx
imul edx, dword [ebp - 0x18]
mov ecx, ebx
imul ecx, dword [ebp - 0x20]
add edx, ecx
shr edx, 2
and edx, 0xff00
add eax, edx
mov dword [ebp - 0x24], eax
push ebp
push esi
lea eax, [ebx + edi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.59839e44
pop ecx
push ebp
push esi
mov eax, edi
sub eax, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.59839e44
pop ecx
inc ebx
cmp ebx, 4
jne 0x5983a07e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc8]
and al, byte [ebp + 8]
je 0x5983a11e
push esi
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_InflateRect
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.user32.dll_DrawFocusRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
lea ecx, [esi + 3]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.59839b68
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5983a17f
push 0x64
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetWindowTextW
lea eax, [ebp - 8]
lea edx, [ebp - 0x10e]
mov ecx, 0x65
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x5983a1b5
push 0x64
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10e]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push 1
push 0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.598398ec
mov edi, dword [ebp - 0x2c]
sub edi, dword [ebp - 0x34]
sub edi, eax
sub edi, 0x1b
sub edi, 8
sar edi, 1
jns 0x5983a1db
adc edi, 0
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x5983a29e
push 0xffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_SetTextColor
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5983a236
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
lea eax, [esi + 5]
push eax
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutW
jmp 0x5983a288
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 8]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x118]
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 8]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x11c]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [esi + 5]
push eax
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutA
push 0x15
call sub.user32.dll_GetSysColor
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_SetTextColor
jmp 0x5983a2ae
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_SetTextColor
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x5983a2e7
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__EnsureUnicodeString_qqrr20System_UnicodeString
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 8]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
add esi, 4
push esi
add edi, 0x1b
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutW
jmp 0x5983a339
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 8]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x120]
call sub.rtl120.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 8]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x124]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
add esi, 4
push esi
add edi, 0x1b
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.gdi32.dll_TextOutA
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5983a38b
lea eax, [ebp - 0x124]
mov edx, 5
call sub.rtl120.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret