Function at 0x4799e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538857
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x575494]
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, 0x5776a0
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x21d], 0
call fcn.00471380
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 0x479a50
mov eax, dword [esi + 0x38]
xor edx, edx
mov word [ebp - 0x21c], dx
cmp eax, ebx
je 0x479a8d
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jg 0x479a8d
mov edx, dword [esi + 0x34]
mov edi, dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + esi + 0x34], 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 0x479b11
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov ecx, esi
lea ebx, [ebp - 0x274]
call fcn.00507c00
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 0x479b11
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 0x54ee24
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 0x479b93
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov ecx, esi
lea ebx, [ebp - 0x268]
call fcn.00507c00
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 0x479b93
lea edx, [esi + 1]
push edx
push 0x54ee24
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 0x479ba6
mov eax, 0x54ee24
mov edi, dword [ebp - 0x224]
lea ecx, [ebp - 0x240]
push ecx
add edi, 0xd0
push eax
lea esi, [ebp - 0x23c]
call fcn.00448fe0
mov edx, dword [ebp - 0x280]
cmp edx, ebx
jne 0x479bd4
mov edx, 0x54ee24
mov esi, dword [ebp - 0x23c]
mov eax, esi
cmp esi, ebx
jne 0x479be5
mov eax, 0x54ee24
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.00448ec0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x248], ebx
jle 0x479cd3
mov eax, dword [ebp - 0x24c]
cmp eax, ebx
jne 0x479c20
mov eax, 0x54ee24
mov ebx, dword [ebp - 0x224]
lea esi, [ebx + 0xec]
add ebx, 0xf8
push ebx
push eax
call fcn.00448fe0
test al, al
je 0x479cae
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 + 0xe8]
push ecx
lea eax, [ebp - 0x258]
call fcn.005080c0
mov edx, dword [edi + 0xe8]
mov eax, dword [ebx]
cmp eax, dword [edx + 0x208]
jne 0x479c8e
lea eax, [ebp - 0x258]
mov ecx, esi
call fcn.00445280
test al, al
je 0x479c95
mov byte [ebp - 0x21d], 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x479cb4
push eax
call fcn.0051eadb
add esp, 4
jmp 0x479cb4
mov edi, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
jne 0x479cc3
mov ecx, 0x54ee24
lea eax, [edi + 0x24]
call fcn.00405d30
mov esi, dword [ebp - 0x23c]
xor ebx, ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24c]
cmp eax, ebx
je 0x479cfc
push eax
call fcn.0051eadb
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 0x479d0d
push esi
call fcn.0051eadb
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x479d24
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x280]
cmp eax, ebx
je 0x479d3e
push eax
call fcn.0051eadb
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.0051eacc
mov esp, ebp
pop ebp
ret 4