Function at 0x52b760
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa4
push esi
mov esi, ecx
mov ecx, dword [0x5a1b00]
mov dword [esp + 4], esi
call fcn.00486db0
test eax, eax
jne 0x52b786
xor ecx, ecx
mov dword [0x5a1520], ecx
jmp 0x52b78c
mov ecx, dword [0x5a1520]
lea eax, [esi - 1]
cmp eax, 7
ja case.default.0x52b798
jmp dword [eax*4 + 0x52ba98]
mov eax, dword [0x5a13f0]
test eax, eax
jne 0x52b7d3
test ecx, ecx
je case.0x52b798.8
mov eax, 1
pop esi
add esp, 0xa4
ret
mov eax, dword [0x5a13f0]
test eax, eax
je 0x52b7d3
mov eax, dword [0x5a13f8]
test eax, eax
je case.0x52b798.8
mov eax, 1
pop esi
add esp, 0xa4
ret
mov eax, dword [0x5a13f0]
test eax, eax
je 0x52b7d3
mov dword [0x5a1520], 1
jmp case.0x52b798.8
mov eax, dword [0x5a13f0]
test eax, eax
je case.default.0x52b798
mov dword [0x5a1520], 0
jmp case.0x52b798.8
mov eax, dword [0x5a13f0]
test eax, eax
je case.default.0x52b798
test ecx, ecx
jne 0x52b7d3
mov dword [esp + 4], 1
mov esi, dword [esp + 4]
mov al, byte [0x59bb90]
test al, al
mov edx, dword [0x5a1b00]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], 0x58
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], 0x8041
mov dword [esp + 0x24], 0
je 0x52b990
push edi
push 0x589eb8
lea eax, [esp + 0x30]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x575258
lea ecx, [esp + 0x30]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
call ebp
mov esi, 0x3c
sub esi, eax
push esi
push 0x59bb90
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + esi + 0x74], 0
call edi
lea eax, [esp + 0x2c]
push eax
call ebp
cmp eax, 0x37
pop edi
jle 0x52b8e6
push 0x57bb38
lea ecx, [esp + 0x63]
push ecx
call ebx
mov esi, dword [esp + 0xc]
cmp esi, 1
jne 0x52b9c7
call fcn.0052b600
mov dword [esp + 0x24], eax
mov eax, dword [0x5a13f0]
test eax, eax
je 0x52b9a1
lea eax, [esp + 0x10]
push eax
push esi
jmp 0x52b9a8
mov eax, dword [0x5a13f0]
test eax, eax
je 0x52b7d3
mov dword [esp + 4], 2
jmp 0x52b82d
mov eax, dword [0x5a13f0]
test eax, eax
je 0x52b7d3
cmp esi, 8
jne 0x52b831
mov eax, dword [0x5a1b00]
lea ecx, [esp + 8]
push ecx
push 1
mov dword [esp + 0x10], 0x58
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x8041
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0xa4
ret
push 0x589eb8
lea edx, [esp + 0x2c]
push edx
call ebx
jmp 0x52b8ea
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, eax
test esi, esi
je 0x52ba6e
mov dword [0x5a13f0], 1
jmp 0x52ba6e
cmp esi, 2
jne 0x52b9e7
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [0x5a13f0], 0
jmp 0x52ba6c
cmp esi, 7
jne 0x52b9f6
mov dword [esp + 0x1c], 4
jmp 0x52ba5f
mov ecx, dword [0x5a1b00]
call fcn.00486db0
test eax, eax
je 0x52ba36
mov edx, dword [0x5a1b00]
push 0x3c
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x68], 0
call ebp
cmp eax, 0x37
jle 0x52ba36
push 0x57bb38
lea ecx, [esp + 0x63]
push ecx
call ebx
cmp esi, 3
jne 0x52ba4e
mov edx, dword [0x5a1afc]
push 0x10
push edx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x52ba5f
call fcn.0052b600
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
pop ebp
pop ebx
je 0x52ba7f
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0xa4
ret
xor eax, eax
pop esi
add esp, 0xa4
ret