Function at 0x10059b70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c2e1e
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 0x10059ea8
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 0x10059c96
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.1008f060
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 0x10059c30
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10059c5b
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 0x10059c5b
push eax
push 1
push 0x7f
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10059d5a
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 0x10059d5a
cmp dword [ebx + 0xe0], 8
lea esi, [ebx + 0xcc]
jb 0x10059ca7
mov esi, dword [esi]
mov eax, dword [0x1011392c]
test al, 1
jne 0x10059cd8
or eax, 1
mov dword [0x1011392c], eax
mov dword [ebp - 4], 0
call fcn.1004d8f0
push 0x100c60c0
call fcn.1008bea4
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, 0x10113930
call fcn.1004ee30
mov esi, eax
test esi, esi
je 0x10059d26
cmp dword [ebp - 0x14], 0
je 0x10059d26
mov dword [esi + 0x18], 1
cmp dword [0x10113940], 0
je 0x10059d26
push dword [0x1011393c]
mov ecx, esi
push dword [0x10113938]
push dword [0x10113934]
call fcn.1005c670
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 0x10059d58
cmp dword [esi + 0xc], 0
jbe 0x10059d58
push 0xff
push 0
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push edi
push ecx
mov ecx, esi
call fcn.1005c0a0
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 0x10059d9a
mov ecx, dword [edx + 0x18]
mov eax, ecx
shr eax, 1
not eax
test al, 1
jne 0x10059dbf
and ecx, 0xfffffffd
mov dword [edx + 0x18], ecx
test cl, cl
jmp 0x10059da9
mov eax, dword [edx + 0x18]
test al, 2
jne 0x10059dbf
or eax, 2
mov dword [edx + 0x18], eax
test al, al
jns 0x10059dbf
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x10059dbf
mov ecx, dword [ecx]
lea eax, [edx + 4]
push 0
push eax
call fcn.10058880
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 0x10059de8
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x30], 0
jne 0x10059e4f
push 0x800
lea eax, [ebp - 0x964]
push 0
push eax
call fcn.1008f060
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 0x10059e27
xor edx, edx
jmp 0x10059e3f
lea edx, [ebp - 0x964]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10059e30
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 0x10059e87
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