Function at 0x537e30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa4
push esi
mov esi, ecx
mov ecx, dword [0x5b4314]
mov dword [esp + 4], esi
call fcn.0048ae30
test eax, eax
jne 0x537e56
xor ecx, ecx
mov dword [0x5b3d30], ecx
jmp 0x537e5c
mov ecx, dword [0x5b3d30]
lea eax, [esi - 1]
cmp eax, 7
ja case.default.0x537e68
jmp dword [eax*4 + 0x538168]
mov eax, dword [0x5b3c00]
test eax, eax
jne 0x537ea3
test ecx, ecx
je case.0x537e68.8
mov eax, 1
pop esi
add esp, 0xa4
ret
mov eax, dword [0x5b3c00]
test eax, eax
je 0x537ea3
mov eax, dword [0x5b3c08]
test eax, eax
je case.0x537e68.8
mov eax, 1
pop esi
add esp, 0xa4
ret
mov eax, dword [0x5b3c00]
test eax, eax
je 0x537ea3
mov dword [0x5b3d30], 1
jmp case.0x537e68.8
mov eax, dword [0x5b3c00]
test eax, eax
je case.default.0x537e68
mov dword [0x5b3d30], 0
jmp case.0x537e68.8
mov eax, dword [0x5b3c00]
test eax, eax
je case.default.0x537e68
test ecx, ecx
jne 0x537ea3
mov dword [esp + 4], 1
mov esi, dword [esp + 4]
mov al, byte [0x5ad0f8]
test al, al
mov edx, dword [0x5b4314]
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 0x538060
push edi
push 0x59c030
lea eax, [esp + 0x30]
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x5842b8
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 0x5ad0f8
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 0x537fb6
push 0x58b3d8
lea ecx, [esp + 0x63]
push ecx
call ebx
mov esi, dword [esp + 0xc]
cmp esi, 1
jne 0x538097
call fcn.00537cd0
mov dword [esp + 0x24], eax
mov eax, dword [0x5b3c00]
test eax, eax
je 0x538071
lea eax, [esp + 0x10]
push eax
push esi
jmp 0x538078
mov eax, dword [0x5b3c00]
test eax, eax
je 0x537ea3
mov dword [esp + 4], 2
jmp 0x537efd
mov eax, dword [0x5b3c00]
test eax, eax
je 0x537ea3
cmp esi, 8
jne 0x537f01
mov eax, dword [0x5b4314]
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 0x59c030
lea edx, [esp + 0x2c]
push edx
call ebx
jmp 0x537fba
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, eax
test esi, esi
je 0x53813e
mov dword [0x5b3c00], 1
jmp 0x53813e
cmp esi, 2
jne 0x5380b7
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [0x5b3c00], 0
jmp 0x53813c
cmp esi, 7
jne 0x5380c6
mov dword [esp + 0x1c], 4
jmp 0x53812f
mov ecx, dword [0x5b4314]
call fcn.0048ae30
test eax, eax
je 0x538106
mov edx, dword [0x5b4314]
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 0x538106
push 0x58b3d8
lea ecx, [esp + 0x63]
push ecx
call ebx
cmp esi, 3
jne 0x53811e
mov edx, dword [0x5b4310]
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 0x53812f
call fcn.00537cd0
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 0x53814f
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