Function at 0x10058f20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100c20ce
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 0x10059258
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 0x10059046
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.1008e420
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 0x10058fe0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1005900b
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 0x1005900b
push eax
push 1
push 0x7f
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1005910a
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 0x1005910a
cmp dword [ebx + 0xe0], 8
lea esi, [ebx + 0xcc]
jb 0x10059057
mov esi, dword [esi]
mov eax, dword [0x1011191c]
test al, 1
jne 0x10059088
or eax, 1
mov dword [0x1011191c], eax
mov dword [ebp - 4], 0
call fcn.1004cd90
push 0x100c5360
call fcn.1008b247
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, 0x10111920
call fcn.1004e2d0
mov esi, eax
test esi, esi
je 0x100590d6
cmp dword [ebp - 0x14], 0
je 0x100590d6
mov dword [esi + 0x18], 1
cmp dword [0x10111930], 0
je 0x100590d6
push dword [0x1011192c]
mov ecx, esi
push dword [0x10111928]
push dword [0x10111924]
call fcn.1005ba30
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 0x10059108
cmp dword [esi + 0xc], 0
jbe 0x10059108
push 0xff
push 0
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push edi
push ecx
mov ecx, esi
call fcn.1005b460
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 0x1005914a
mov ecx, dword [edx + 0x18]
mov eax, ecx
shr eax, 1
not eax
test al, 1
jne 0x1005916f
and ecx, 0xfffffffd
mov dword [edx + 0x18], ecx
test cl, cl
jmp 0x10059159
mov eax, dword [edx + 0x18]
test al, 2
jne 0x1005916f
or eax, 2
mov dword [edx + 0x18], eax
test al, al
jns 0x1005916f
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x1005916f
mov ecx, dword [ecx]
lea eax, [edx + 4]
push 0
push eax
call fcn.10057c30
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 0x10059198
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x30], 0
jne 0x100591ff
push 0x800
lea eax, [ebp - 0x964]
push 0
push eax
call fcn.1008e420
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 0x100591d7
xor edx, edx
jmp 0x100591ef
lea edx, [ebp - 0x964]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100591e0
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 0x10059237
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