Function at 0x43ad40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x43b0a5
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x43adb7
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x43adb7
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0043a864
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x43ada9
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, esi
call fcn.0043a8bc
jmp 0x43adb7
mov edx, esi
shr edx, 1
lea eax, [ebp - 0xc]
mov ecx, ebx
call fcn.0043a8bc
test edi, edi
je 0x43adc9
mov esi, edi
lea edi, [ebp - 0x30]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
jmp 0x43add6
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x43ae2c
mov esi, 2
cmp byte [ebp + 0xc], 0
je 0x43ae0c
push 0x210
push 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFrameControl
jmp 0x43ae20
push 0x10
push 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFrameControl
push 0x15
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x10], eax
jmp 0x43ae5a
xor esi, esi
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateSolidBrush
mov ebx, eax
push ebx
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_FillRect
push ebx
call sub.gdi32.dll_DeleteObject
push 0xf
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp eax, dword [ebp + 0x1c]
jne 0x43af40
mov eax, dword [ebp - 4]
cmp dword [eax + 0x64], 0
je 0x43af40
cmp dword [ebp + 0x14], 0xffffffff
je 0x43ae85
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x6c]
push ebp
push esi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov eax, edi
call fcn.0043acc0
pop ecx
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x43af40
mov eax, dword [ebp - 0x10]
and eax, 0xff00
mov dword [ebp - 0x14], eax
and dword [ebp - 0x10], 0xff00ff
mov eax, dword [ebp - 0xc]
and eax, 0xff00
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff00ff
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov eax, 4
sub eax, ebx
imul dword [ebp - 0x10]
mov edx, ebx
imul edx, dword [ebp - 0x18]
add eax, edx
shr eax, 2
and eax, 0xff00ff
mov edx, 4
sub edx, ebx
imul edx, dword [ebp - 0x14]
mov ecx, ebx
imul ecx, dword [ebp - 0x1c]
add edx, ecx
shr edx, 2
and edx, 0xff00
add eax, edx
mov dword [ebp - 0x20], eax
push ebp
push esi
lea eax, [ebx + edi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.0043acc0
pop ecx
push ebp
push esi
mov eax, edi
sub eax, ebx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.0043acc0
pop ecx
inc ebx
cmp ebx, 4
jne 0x43aedc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
and al, byte [ebp + 8]
je 0x43af7f
push esi
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x40]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_InflateRect
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFocusRect
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
push eax
lea ecx, [esi + 3]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
call fcn.0043a9e0
push 0x1e
lea eax, [ebp - 0x5f]
push eax
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_GetWindowTextA
mov ebx, eax
push 1
push 0
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x5f]
mov ecx, 0x1f
call fcn.004037e4
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0043a7d4
mov edi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x30]
sub edi, eax
sub edi, 0x1b
sub edi, 8
sar edi, 1
jns 0x43aff4
adc edi, 0
mov eax, dword [ebp + 0x1c]
push eax
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x43b041
push 0xffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
push ebx
lea eax, [ebp - 0x5f]
push eax
lea eax, [esi + 5]
push eax
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
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 + 8]
push eax
call sub.gdi32.dll_SetTextColor
jmp 0x43b051
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
push ebx
lea eax, [ebp - 0x5f]
push eax
add esi, 4
push esi
add edi, 0x1b
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_TextOutA
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
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 0x43b0ac
lea eax, [ebp - 0x64]
call fcn.004035f4
ret