Function at 0x4a0cf0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x55e08c]
sub esp, 0x90
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov ebx, ecx
je 0x4a0d16
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
lea ecx, [esp + 0x6c]
mov dword [0x55e08c], 1
call fcn.0049b580
mov edi, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edi
call fcn.004aed30
lea eax, [esp + 0x34]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [ebx + 0x1e8]
call fcn.004ae6b0
mov esi, dword [eax]
lea ecx, [esp + 0x38]
call fcn.004ae650
lea ecx, [esp + 0x6c]
call fcn.004ae650
add esi, 0x10
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x4a0d77
lea eax, [esi + 4]
jmp 0x4a0d79
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call fcn.00406370
mov eax, dword [ebx + 0x170]
mov dword [esp + 0x24], 0x5419d8
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x24]
cmp eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebp
jne 0x4a0f4c
mov ecx, dword [ebx + 0x164]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jne 0x4a0f4c
mov edx, dword [ebx + 0x168]
mov eax, dword [esi + 0x14]
cmp edx, eax
jne 0x4a0f4c
mov eax, dword [ebx + 0x16c]
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jne 0x4a0f4c
mov ecx, dword [0x547570]
mov edx, 0x554e48
test edx, edx
mov dword [esp + 0x10], ecx
je 0x4a0e42
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4a0e42
push ebp
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4a0e42
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 1]
test eax, eax
mov edi, ecx
jne 0x4a0e19
test ecx, ecx
jne 0x4a0e37
push eax
push ecx
push 0xffffffffffffffff
push 0x554e48
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x4a0e37
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 0x4a0e5b
cmp dword [ecx - 4], eax
jge 0x4a0ebb
mov edi, dword [ecx - 8]
cmp edi, eax
mov dword [esp + 0x20], edi
jle 0x4a0e68
mov eax, edi
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4a0ebf
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 [0x547574]
cmp ebp, eax
je 0x4a0eb7
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a0eb7
push ebp
call fcn.00532222
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.005322f9
add esp, 8
test eax, eax
jne 0x4a0f14
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a0f43
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a0f43
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov edi, dword [esp + 0xa4]
xor ebp, ebp
mov dword [ebx + 0x188], edi
mov eax, dword [0x54f920]
cmp eax, ebp
je 0x4a0f66
add esi, 0x2c
mov dword [ebx + 0x18c], esi
jmp 0x4a0f6c
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.004216a0
mov ecx, ebx
call fcn.00499860
mov dword [ebx + 0x160], edi
mov dword [ebx + 0x18c], ebp
mov dword [ebx + 0x188], 0xffffffff
mov eax, dword [0x54f91c]
cmp eax, ebp
je 0x4a0fbd
cmp dword [esp + 0x18], ebp
je 0x4a0fbd
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004a1310
push ebp
mov ecx, ebx
call fcn.0049bd60
lea ecx, [esp + 0x24]
mov dword [0x55e08c], ebp
call fcn.00510740
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x90
ret 4