Function at 0x100587a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c171e
push eax
mov dword fs:[0], esp
sub esp, 0x95c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xf8], 0
jne 0x10058ad8
mov eax, dword [ebx + 0xe8]
add eax, dword [ebx + 0xb0]
mov edi, dword [ebx + 0xe4]
add edi, dword [ebx + 0xac]
cmp dword [ebx + 0xdc], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], esi
jne 0x100588c6
push 0x80
lea eax, [ebp - 0x164]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x30
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.1008dc90
add esp, 0xc
mov dword [ebp - 0x64], 0x30
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x164]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x10058860
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1005888b
push 0
push 0
push 0x7f
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1005888b
push eax
push 1
push 0x7f
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1005898a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call esi
push 0x32
mov edi, eax
call esi
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push 3
push 0
push 0
push eax
push edi
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
push esi
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
add esi, edi
mov dword [ebp - 0x18], esi
mov edi, esi
jmp 0x1005898a
cmp dword [ebx + 0xe0], 8
lea esi, [ebx + 0xcc]
jb 0x100588d7
mov esi, dword [esi]
mov eax, dword [0x1011078c]
test al, 1
jne 0x10058908
or eax, 1
mov dword [0x1011078c], eax
mov dword [ebp - 4], 0
call fcn.1004c520
push 0x100c49c0
call fcn.1008aad4
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
push 1
push esi
mov ecx, 0x10110790
call fcn.1004da60
mov esi, eax
test esi, esi
je 0x10058956
cmp dword [ebp - 0x14], 0
je 0x10058956
mov dword [esi + 0x18], 1
cmp dword [0x101107a0], 0
je 0x10058956
push dword [0x1011079c]
mov ecx, esi
push dword [0x10110798]
push dword [0x10110794]
call fcn.1005b2a0
cmp dword [esi + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jbe 0x10058988
cmp dword [esi + 0xc], 0
jbe 0x10058988
push 0xff
push 0
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push edi
push ecx
mov ecx, esi
call fcn.1005acd0
mov eax, dword [ebp - 0x18]
add edi, eax
add edi, dword [ebx + 0xf4]
push 0
push 0xf060
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
mov edx, dword [ebx + 0x168]
test al, 3
je 0x100589ca
mov ecx, dword [edx + 0x18]
mov eax, ecx
shr eax, 1
not eax
test al, 1
jne 0x100589ef
and ecx, 0xfffffffd
mov dword [edx + 0x18], ecx
test cl, cl
jmp 0x100589d9
mov eax, dword [edx + 0x18]
test al, 2
jne 0x100589ef
or eax, 2
mov dword [edx + 0x18], eax
test al, al
jns 0x100589ef
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x100589ef
mov ecx, dword [ecx]
lea eax, [edx + 4]
push 0
push eax
call fcn.100574b0
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [ebx + 0x16c]
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x1c], eax
cmp dword [esi + 0x88], 0
jne 0x10058a18
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x30], 0
jne 0x10058a7f
push 0x800
lea eax, [ebp - 0x964]
push 0
push eax
call fcn.1008dc90
add esp, 0xc
lea eax, [ebp - 0x964]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x964], 0
jne 0x10058a57
xor edx, edx
jmp 0x10058a6f
lea edx, [ebp - 0x964]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10058a60
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x964]
lea ecx, [ebx + 0x20]
push eax
call fcn.10001ddf
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 0xb4]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, 0x14
cmovg eax, ecx
mov dword [ebp - 0x34], edi
add eax, edx
mov dword [ebp - 0x30], edx
cmp dword [ebx + 0x34], 8
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + 0x24]
jb 0x10058ab7
mov ecx, dword [ecx]
mov eax, dword [edx]
push 0x40024
push dword [ebx + 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebx + 0x15c]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
push ecx
mov ecx, edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4