Function at 0x10058a10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c1abe
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 0x10058d48
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 0x10058b36
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.1008df10
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 0x10058ad0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10058afb
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 0x10058afb
push eax
push 1
push 0x7f
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10058bfa
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 0x10058bfa
cmp dword [ebx + 0xe0], 8
lea esi, [ebx + 0xcc]
jb 0x10058b47
mov esi, dword [esi]
mov eax, dword [0x1011091c]
test al, 1
jne 0x10058b78
or eax, 1
mov dword [0x1011091c], eax
mov dword [ebp - 4], 0
call fcn.1004c880
push 0x100c4d50
call fcn.1008ad54
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, 0x10110920
call fcn.1004ddc0
mov esi, eax
test esi, esi
je 0x10058bc6
cmp dword [ebp - 0x14], 0
je 0x10058bc6
mov dword [esi + 0x18], 1
cmp dword [0x10110930], 0
je 0x10058bc6
push dword [0x1011092c]
mov ecx, esi
push dword [0x10110928]
push dword [0x10110924]
call fcn.1005b530
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 0x10058bf8
cmp dword [esi + 0xc], 0
jbe 0x10058bf8
push 0xff
push 0
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push edi
push ecx
mov ecx, esi
call fcn.1005af60
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 0x10058c3a
mov ecx, dword [edx + 0x18]
mov eax, ecx
shr eax, 1
not eax
test al, 1
jne 0x10058c5f
and ecx, 0xfffffffd
mov dword [edx + 0x18], ecx
test cl, cl
jmp 0x10058c49
mov eax, dword [edx + 0x18]
test al, 2
jne 0x10058c5f
or eax, 2
mov dword [edx + 0x18], eax
test al, al
jns 0x10058c5f
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x10058c5f
mov ecx, dword [ecx]
lea eax, [edx + 4]
push 0
push eax
call fcn.10057720
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 0x10058c88
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x30], 0
jne 0x10058cef
push 0x800
lea eax, [ebp - 0x964]
push 0
push eax
call fcn.1008df10
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 0x10058cc7
xor edx, edx
jmp 0x10058cdf
lea edx, [ebp - 0x964]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10058cd0
sub edx, ecx
sar edx, 1
push edx
lea eax, [ebp - 0x964]
lea ecx, [ebx + 0x20]
push eax
call fcn.10001dcf
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 0x10058d27
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