Function at 0x40f770
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x960
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x95c], eax
cmp dword [edi + 0x104], 0
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x14], eax
jne 0x40fa89
mov eax, dword [edi + 0xf0]
add eax, dword [edi + 0xb4]
mov ecx, dword [edi + 0x188]
mov ebx, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xf4]
add eax, dword [edi + 0xb8]
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0
jne 0x40f899
push 0x80
lea edx, [esp + 0x64]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x30
lea eax, [esp + 0x34]
push 0
push eax
call fcn.004315d0
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x64]
push edx
push 0
mov dword [esp + 0x3c], 0x30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x40f831
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x40f85a
push 0
push 0
push 0x7f
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
jne 0x40f85a
push eax
push 1
push 0x7f
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
je 0x40f930
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x32
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x14]
push 3
push 0
push 0
push eax
push ebx
push esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
add esi, ebx
mov dword [esp + 0xc], esi
jmp 0x40f92c
cmp dword [edi + 0xec], 8
jb 0x40f8aa
mov esi, dword [edi + 0xd8]
jmp 0x40f8b0
lea esi, [edi + 0xd8]
call fcn.00407050
lea edx, [esp + 0x10]
push edx
mov ebx, eax
push 1
push ebx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.00407e70
mov esi, eax
test esi, esi
je 0x40f8fa
cmp dword [esp + 0x10], 0
je 0x40f8fa
mov dword [esi + 0x18], 1
cmp dword [ebx + 0x10], 0
je 0x40f8fa
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
push esi
call fcn.00411a00
cmp dword [esi + 8], 0
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x10], eax
jbe 0x40f928
cmp dword [esi + 0xc], 0
jbe 0x40f928
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push 0
push ecx
push edx
push eax
mov eax, esi
call fcn.00411450
add dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x100]
add dword [esp + 0xc], ecx
push 0
push 0xf060
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
test al, 3
mov ecx, dword [edi + 0x184]
je 0x40f987
mov edx, dword [ecx + 0x18]
mov eax, edx
shr eax, 1
not eax
test al, 1
jne 0x40f992
and edx, 0xfffffffd
test dl, dl
mov dword [ecx + 0x18], edx
lea eax, [ecx + 4]
jns 0x40f992
mov ecx, dword [ecx + 0x3c]
test ecx, ecx
je 0x40f992
mov esi, dword [ecx]
push 0
call fcn.0040e210
jmp 0x40f992
mov eax, dword [edi + 0x18c]
call fcn.0040b720
mov ecx, dword [esp + 0x14]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [edi + 0x188]
cmp dword [esi + 0x88], 0
mov ebx, dword [edi + 0x80]
jne 0x40f9ba
mov ebx, dword [edi + 0x84]
cmp dword [edi + 0x34], 0
jne 0x40fa22
push 0x7fe
lea edx, [esp + 0x166]
push 0
push edx
mov word [esp + 0x16c], 0
call fcn.004315d0
mov ecx, dword [esi + 4]
add esp, 0xc
push 0x400
lea eax, [esp + 0x164]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x160]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fa02
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x164]
push edx
lea esi, [edi + 0x20]
call fcn.00403890
mov eax, dword [esp + 0xc]
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 0xbc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jg 0x40fa4c
mov eax, 0x14
mov edx, dword [edi + 0x34]
add eax, ecx
cmp dword [edi + 0x38], 8
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + 0x24]
jb 0x40fa66
mov eax, dword [edi + 0x24]
jmp 0x40fa69
lea eax, [edi + 0x24]
mov esi, dword [ecx]
push 0x40024
push edx
push eax
mov eax, dword [edi + 0x178]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0xc]
push ebx
push edx
call eax
mov ecx, dword [esp + 0x964]
pop esi
pop ebx
xor ecx, esp
call fcn.00429d78
mov esp, ebp
pop ebp
ret 4