Function at 0x10b49eb0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x3c]
push edi
cmp cx, 0x3ea
jne 0x10b4a12d
cmp ax, 0x400
jne 0x10b4a10c
mov edi, dword [esp + 0x3c]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [esi + 0x18]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
lea eax, [edi + 1]
push eax
call sub.libjsybheap.dll_Ordinal_13
mov ecx, dword [esp + 0x40]
add esp, 4
mov ebp, eax
lea eax, [edi + 1]
push eax
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test byte [esi + 4], 3
jne 0x10b4a011
mov edx, dword [esi + 0x64]
push 1
sub edx, 4
lea eax, [esp + 0x18]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x14]
push 0x2c10
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x1c]
add eax, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc8]
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [esi + 0xd4]
lea ecx, [eax + edx*4 + 0x3c]
mov edx, dword [eax + edx*4 + 0x3c]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xac]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0xb0]
neg ecx
mov dword [esp + 0x30], eax
push ecx
neg edx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x24], eax
lea edi, [eax + ecx]
mov ecx, dword [esp + 0x20]
add ecx, edx
cmp dword [0x10e2cda0], 0
mov dword [esp + 0x2c], edi
jne 0x10b49feb
sub edx, 4
add ecx, 4
mov dword [esp + 0x28], edx
jmp 0x10b49ff5
sub edx, 2
add ecx, 2
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
sub ecx, edx
push 0x114
sub edi, eax
push ecx
push edi
push edx
mov edx, dword [esi + 0x30]
push eax
push 0
push edx
jmp 0x10b4a0db
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xd4]
add eax, 0x14
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc8]
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
lea eax, [edx + ecx*4 + 0x3c]
mov ecx, dword [edx + ecx*4 + 0x3c]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0xac]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0xb0]
neg eax
mov dword [esp + 0x30], edx
push eax
neg ecx
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0xa4]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub eax, edx
cmp eax, ecx
jge 0x10b4a096
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [0x10e2cda0]
test eax, eax
mov eax, dword [esp + 0x28]
jne 0x10b4a0b3
sub eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
add eax, 4
jmp 0x10b4a0c1
sub eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
add eax, 2
mov edi, dword [esp + 0x28]
mov dword [esp + 0x30], eax
sub eax, edi
push 0x114
push eax
mov eax, dword [esp + 0x44]
push ecx
push edi
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
call sub.libjsybheap.dll_Ordinal_16
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x3c]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
jmp 0x10b4a12d
cmp ax, 0x200
jne 0x10b4a12d
mov eax, dword [esi]
push 0
push 0
push 0x1f
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov edx, dword [esp + 0x3c]
and eax, 0xffff
shl eax, 0x10
and ecx, 0xffff
push edx
or eax, ecx
push eax
mov eax, dword [esi]
push 0x111
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc