Function at 0x4158d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1353
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x517b80]
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
push 0x48
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004aa220
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x78]
add esp, 0xc
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
push dword [ebx + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov byte [ebp - 4], 1
call fcn.0040bad0
mov edi, eax
test edi, edi
je 0x415bc9
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 4]
call fcn.004135b0
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [ebp - 0x84]
test eax, 0x4000
je 0x415b75
mov edi, dword [esi - 0xc]
test edi, edi
js 0x415bbf
lfence
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4159d6
push edi
lea ecx, [ebp - 0x84]
lfence
call fcn.0040c490
mov esi, dword [ebp - 0x84]
lea eax, [edi + 1]
push eax
push esi
call fcn.004b9d54
add esp, 8
cmp edi, dword [esi - 8]
jg 0x415bbf
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
push 0
push 0
push 0x31
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_SelectObject]
call fcn.00413470
mov edi, dword [eax + 4]
mov ecx, edi
call fcn.004113f0
push eax
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, edi
call fcn.00411370
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, edi
call fcn.00411410
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_FrameRect]
add dword [ebp - 0x38], 4
lea ecx, [ebp - 0x38]
push 0x24
push ecx
push dword [esi - 0xc]
lea eax, [esi - 0x10]
push esi
push dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov dword [ebp - 0x8c], 0
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004113f0
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov esi, eax
push esi
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x60
push dword [0x51d68c]
push 3
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push 0x60
push dword [0x51d68c]
mov ebx, eax
push 0xd
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov edi, dword [ebp - 0x30]
push 0x60
push dword [0x51d68c]
sub edi, eax
push 8
call dword [sym.imp.KERNEL32.DLL_MulDiv]
add eax, dword [ebp - 0x34]
lea ecx, [edi + ebx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
lea ecx, [eax + ebx]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx*2 + 1]
add ecx, edi
dec eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push 3
push eax
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_Polyline]
test esi, esi
je 0x415b1e
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x88]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x415b48
lfence
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4dc8a4]
mov ecx, edi
call esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
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.004a71aa
mov esp, ebp
pop ebp
ret 0x10
test eax, 0x2000
je 0x4159f5
mov edi, dword [esi - 0xc]
test edi, edi
js 0x415bbf
lfence
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x415bb0
push edi
lea ecx, [ebp - 0x84]
lfence
call fcn.0040c490
mov esi, dword [ebp - 0x84]
lea eax, [edi + 1]
push eax
push esi
call fcn.004b9f1b
jmp 0x4159e0
push 0x80070057
call fcn.0040b680
push 0x80004005
call fcn.0040b680
int3