Function at 0x46fbf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cb77
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x559024]
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 eax, dword [ebp + 8]
mov esi, ecx
push 0x7571
lea ecx, [ebp - 0x280]
push ecx
mov ecx, 0x55a400
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x21d], 0
call fcn.00467b90
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, 0x20a
lea eax, [ebp - 0x21c]
lea esp, [esp]
mov byte [eax], bl
inc eax
dec ecx
jne 0x46fc60
mov eax, dword [esi + 0x134]
xor edx, edx
mov word [ebp - 0x21c], dx
cmp eax, ebx
je 0x46fca6
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jg 0x46fca6
mov edx, dword [esi + 0x130]
mov edi, dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + esi + 0x130], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call edi
mov esi, eax
cmp esi, ebx
jle 0x46fd2a
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov ecx, esi
lea ebx, [ebp - 0x274]
call fcn.004fca40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], eax
cmp ecx, ebx
je 0x46fd2a
mov eax, dword [ebp - 0x230]
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x22c], esi
mov byte [ebp - 4], 1
push 0x538640
mov dword [ebp - 0x240], 0x11
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
call edi
mov esi, eax
cmp esi, ebx
jle 0x46fdac
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov ecx, esi
lea ebx, [ebp - 0x268]
call fcn.004fca40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], eax
cmp ecx, ebx
je 0x46fdac
lea edx, [esi + 1]
push edx
push 0x538640
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
cmp eax, ebx
jne 0x46fdbf
mov eax, 0x538640
mov edi, dword [ebp - 0x224]
lea ecx, [ebp - 0x240]
push ecx
add edi, 0x260
push eax
lea esi, [ebp - 0x23c]
call fcn.004408f0
mov edx, dword [ebp - 0x280]
cmp edx, ebx
jne 0x46fded
mov edx, 0x538640
mov esi, dword [ebp - 0x23c]
mov eax, esi
cmp esi, ebx
jne 0x46fdfe
mov eax, 0x538640
mov ecx, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x240]
push eax
push ecx
lea eax, [ebp - 0x24c]
push eax
push edi
call fcn.004407d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x248], ebx
jle 0x46fef5
mov eax, dword [ebp - 0x24c]
cmp eax, ebx
jne 0x46fe39
mov eax, 0x538640
mov ebx, dword [ebp - 0x224]
lea esi, [ebx + 0x4b8]
add ebx, 0x4c4
push ebx
push eax
call fcn.004408f0
test al, al
je 0x46fecd
xor eax, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov edi, dword [ebp - 0x224]
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x2ac]
add ecx, 0x208
push ecx
lea eax, [ebp - 0x258]
call fcn.004fcf00
mov edx, dword [edi + 0x2ac]
mov eax, dword [ebx]
cmp eax, dword [edx + 0x410]
jne 0x46fead
lea eax, [ebp - 0x258]
mov ecx, esi
call fcn.0043cf70
test al, al
je 0x46feb4
mov byte [ebp - 0x21d], 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x46fed3
push eax
call fcn.005134a7
add esp, 4
jmp 0x46fed3
mov edi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
jne 0x46fee2
mov ecx, 0x538640
lea eax, [edi + 0x120]
call fcn.00402f90
mov esi, dword [ebp - 0x23c]
xor ebx, ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24c]
cmp eax, ebx
je 0x46ff1e
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x46ff2f
push esi
call fcn.005134a7
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x46ff46
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x280]
cmp eax, ebx
je 0x46ff60
push eax
call fcn.005134a7
add esp, 4
mov al, byte [ebp - 0x21d]
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.00513498
mov esp, ebp
pop ebp
ret 4