Function at 0x548c50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7989
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 8]
call fcn.00548c20
test al, al
jne 0x548ec1
lea eax, [esi + 0x1c]
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x18]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], edi
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [0x634ba0]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [ebp - 0x30]
lea esi, [eax + 1]
push esi
call fcn.00443930
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push 0xf2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov dword [ebp - 0x28], eax
cmp byte [ebx + 0x2d], al
je 0x548d3f
cmp dword [ebx + 0x28], eax
je 0x548d97
mov eax, dword [ebx + 0x38]
push dword [eax]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x548d80
mov eax, dword [eax + 4]
jmp 0x548d82
cmp dword [ebx + 0x24], eax
je 0x548d97
mov eax, dword [ebx + 0x30]
push dword [eax]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x24]
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x548d80
mov eax, dword [eax + 4]
jmp 0x548d82
xor eax, eax
push ecx
push edx
push 0
push 0
push eax
push esi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
add ebx, 0x20
mov edi, dword [ebp - 0x30]
add esi, 0xb
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push esi
push ebx
mov ebx, dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, dword [ebp - 0x2c]
or esi, 0xffffffff
cmp byte [eax + 0x2d], 0
je 0x548e93
mov esi, dword [0x634ba0]
push 0x5e8674
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x548e44
push ebx
lea ecx, [ebp - 0x24]
call fcn.00443b60
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x548e44
add ebx, 1
jne 0x548e16
test esi, esi
jne 0x548e38
push ebx
push esi
push 0xffffffffffffffff
push 0x5e8674
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
je 0x548e38
test eax, eax
jle 0x548e38
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push ecx
lea ecx, [ebp - 0x24]
call fcn.00443a40
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
add eax, 0xb
push esi
mov dword [ebp - 0x2c], eax
add ebx, 0xffffffec
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [ebp - 0x2c]
push ebx
mov ebx, dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_TextOutW]
lea eax, [esi - 0xc]
cmp eax, 0x634ba4
je 0x548e90
lea ecx, [esi - 0xc]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x548e93
push ecx
call fcn.004c59d6
add esp, 4
jmp 0x548e93
or esi, 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x548ea2
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [edi - 0xc]
cmp eax, 0x634ba4
je 0x548ec1
add edi, 0xfffffff4
lock xadd dword [edi], esi
dec esi
test esi, esi
jg 0x548ec1
push edi
call fcn.004c59d6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 4