Function at 0x49fda0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x55cfd4]
sub esp, 0x90
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov ebx, ecx
je 0x49fdc6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
lea ecx, [esp + 0x6c]
mov dword [0x55cfd4], 1
call fcn.0049a630
mov edi, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edi
call fcn.004addc0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [ebx + 0x1e8]
call fcn.004ad740
mov esi, dword [eax]
lea ecx, [esp + 0x38]
call fcn.004ad6e0
lea ecx, [esp + 0x6c]
call fcn.004ad6e0
add esi, 0x10
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x49fe27
lea eax, [esi + 4]
jmp 0x49fe29
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call fcn.00406280
mov eax, dword [ebx + 0x170]
mov dword [esp + 0x24], 0x5409d8
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x24]
cmp eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebp
jne 0x49fffc
mov ecx, dword [ebx + 0x164]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jne 0x49fffc
mov edx, dword [ebx + 0x168]
mov eax, dword [esi + 0x14]
cmp edx, eax
jne 0x49fffc
mov eax, dword [ebx + 0x16c]
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jne 0x49fffc
mov ecx, dword [0x546560]
mov edx, 0x553dd8
test edx, edx
mov dword [esp + 0x10], ecx
je 0x49fef2
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x49fef2
push ebp
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x49fef2
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 1]
test eax, eax
mov edi, ecx
jne 0x49fec9
test ecx, ecx
jne 0x49fee7
push eax
push ecx
push 0xffffffffffffffff
push 0x553dd8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x49fee7
mov word [edi + eax*2 - 2], 0
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405bb0
mov ecx, dword [esp + 0x10]
mov eax, 0x800
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x49ff0b
cmp dword [ecx - 4], eax
jge 0x49ff6b
mov edi, dword [ecx - 8]
cmp edi, eax
mov dword [esp + 0x20], edi
jle 0x49ff18
mov eax, edi
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x49ff6f
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x20]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], edx
mov eax, dword [0x546564]
cmp ebp, eax
je 0x49ff67
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49ff67
push ebp
call fcn.00531732
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0x800
push eax
mov eax, dword [ebx + 0xcc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x10]
push eax
push edx
call fcn.00531809
add esp, 8
test eax, eax
jne 0x49ffc4
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49fff3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49fff3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov edi, dword [esp + 0xa4]
xor ebp, ebp
mov dword [ebx + 0x188], edi
mov eax, dword [0x54e8b0]
cmp eax, ebp
je 0x4a0016
add esi, 0x2c
mov dword [ebx + 0x18c], esi
jmp 0x4a001c
mov dword [ebx + 0x18c], ebp
push ebp
push ebp
push 1
lea eax, [esp + 0x30]
sub esp, 8
mov dword [ebx + 0xc8], edi
mov ecx, esp
push eax
call fcn.004217d0
mov ecx, ebx
call fcn.00498910
mov dword [ebx + 0x160], edi
mov dword [ebx + 0x18c], ebp
mov dword [ebx + 0x188], 0xffffffff
mov eax, dword [0x54e8ac]
cmp eax, ebp
je 0x4a006d
cmp dword [esp + 0x18], ebp
je 0x4a006d
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004a03c0
push ebp
mov ecx, ebx
call fcn.0049ae10
lea ecx, [esp + 0x24]
mov dword [0x55cfd4], ebp
call fcn.0050fe40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret 4