Function at 0x104f171
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1005990
push dword [edi + 0x28]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
mov ebx, eax
pop ecx
neg ebx
lea eax, [ebp - 0x14]
sbb ebx, ebx
push eax
push dword [ebp + 8]
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
xor esi, esi
push esi
push dword [edi + 4]
cmp ebx, esi
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1789
push dword [ebp + 8]
push 6
je 0x104f1ee
call ebx
mov ecx, dword [edi + 0x10]
sub ecx, eax
push ecx
push 5
call ebx
mov ecx, dword [edi + 0x14]
sub ecx, eax
mov eax, dword [edi + 0x20]
push ecx
push esi
push esi
and eax, 0xff7fffbf
or eax, 0x50000591
push eax
push 0x1002088
push 0x10059e8
jmp 0x104f21a
call ebx
mov ecx, dword [edi + 0x10]
sub ecx, eax
push ecx
push 5
call ebx
mov ecx, dword [edi + 0x14]
sub ecx, eax
mov eax, dword [edi + 0x20]
push ecx
push esi
push esi
and eax, 0xff7fffff
or eax, 0x500005c1
push eax
push 0x1002088
push 0x10059dc
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x104f38d
push 0xb4
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
cmp ebx, esi
je 0x104f38d
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x2d
xor eax, eax
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
cmp ecx, esi
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x1c], esi
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x20], 0
mov byte [ebx + 0x28], 0
je 0x104f36e
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 5
push 0x13a1
push eax
call esi
push 0x13ed
call fcn.0106bcca
push eax
push 0
mov edi, 0x13a5
push edi
push dword [ebp + 0xc]
call esi
push 0x13ee
call fcn.0106bcca
push eax
push 1
push edi
push dword [ebp + 0xc]
call esi
push 0x13ef
call fcn.0106bcca
push eax
push 3
push edi
push dword [ebp + 0xc]
call esi
push 0x13f0
call fcn.0106bcca
push eax
push 2
push edi
push dword [ebp + 0xc]
call esi
push 0x13f1
call fcn.0106bcca
push eax
push 4
push edi
push dword [ebp + 0xc]
call esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x3c]
shl eax, 4
push eax
push 0
mov edi, 0x13a3
push edi
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x1e
push eax
push 1
push edi
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x32
push eax
push 3
push edi
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0xd
push eax
push 2
push edi
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x3c]
imul eax, eax, 7
push eax
push 4
push edi
push dword [ebp + 0xc]
call esi
push 0x2ad0
mov dword [ebx + 0xac], 0x14
call sub.NMSUPP.dll_AllocMemory
mov dword [ebx + 0xb0], eax
xor eax, eax
inc eax
jmp 0x104f38f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8