Function at 0x468780
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x14]
sub esp, 0x11c
cmp byte [eax], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4687a9
mov ecx, dword [esi + reloc.USER32.dll_AdjustWindowRectEx]
cmp byte [ecx], 0
mov byte [esp + 0x13], 1
je 0x4687ae
mov byte [esp + 0x13], 0
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4687b7
mov edx, dword [ebp + 0x10]
sub eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], edx
mov edx, dword [esi]
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push 0x496878
mov dword [esi + 4], ecx
mov dword [esp + 0x20], edx
mov dword [esi], 0
mov dword [esp + 0x18], edi
call fcn.00464370
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x468b04
test edi, edi
je 0x468827
mov al, byte [ebx - 1]
cmp al, 0x20
je 0x468827
cmp al, 9
je 0x468827
dec edi
mov dword [esp + 0x14], edi
jmp 0x468ad9
push 2
lea edi, [ebx + 4]
push 0x496880
push edi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x4688e3
add edi, 2
or dword [esi], 2
mov eax, edi
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x46885c
cmp cl, 9
jne 0x46885f
inc eax
jmp 0x468850
mov cl, byte [eax]
test cl, cl
je 0x468897
cmp cl, 0x2d
je 0x46886f
cmp cl, 0x2b
jne 0x468870
inc eax
cmp byte [eax], 0x30
jne 0x468897
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x468882
cmp cl, 0x58
jne 0x468897
movsx eax, byte [eax + 2]
push eax
call fcn.00478339
add esp, 4
test eax, eax
je 0x468897
mov al, 1
jmp 0x468899
xor al, al
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 0xa
push ecx
push 0
push edi
call fcn.00478a63
add esp, 0xc
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
cmp eax, reloc.USER32.dll_CheckMenuItem
je 0x468a7c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x468a7c
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 3
push 0x496884
push edi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x46893c
or dword [esi], 4
add edi, 3
mov eax, edi
call fcn.0040c270
test al, al
je 0x468924
push 0x10
push 0
push edi
call 0x478a38
add esp, 0xc
mov dword [esp + 0x24], edx
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
jmp 0x468a7c
push edi
call fcn.004781a1
add esp, 4
mov dword [esp + 0x24], edx
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
jmp 0x468a7c
push 5
push 0x496888
push edi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x4689db
or dword [esi], 8
lea eax, [edi + 5]
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x46896c
cmp cl, 9
jne 0x46896f
inc eax
jmp 0x468960
push 0x3ff
push eax
lea edi, reloc.USER32.dll_AdjustWindowRectEx
push edi
call fcn.0047a8e0
push 0x496878
mov eax, edi
mov byte [edi + 0x3ff], 0
call fcn.00464370
add esp, 0x10
test eax, eax
je 0x468a7c
nop
cmp eax, edi
je 0x4689ca
mov cl, byte [eax - 1]
cmp cl, 0x20
je 0x4689d2
cmp cl, 9
je 0x4689d2
push 0x496878
add eax, 4
call fcn.00464370
add esp, 4
test eax, eax
jne 0x4689a0
jmp 0x468a7c
mov byte [eax], 0
jmp 0x468a7c
mov byte [eax - 1], 0
jmp 0x468a7c
push 5
push 0x496890
push edi
call fcn.00477695
add esp, 0xc
test eax, eax
jne 0x468ad5
or dword [esi], 0x10
add edi, 5
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x468a0a
cmp al, 9
jne 0x468a0d
inc edi
jmp 0x468a00
push 0xfd
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.0047a8e0
add esp, 0xc
mov edi, 0x4918e4
lea eax, [esp + 0x28]
mov byte [esp + 0x125], 0
call fcn.00408bf0
test eax, eax
je 0x468a3d
mov byte [eax], 0
cmp byte [esp + 0x28], 0
je 0x468a6c
mov edi, dword [0x4a2c58]
test edi, edi
je 0x468a6c
mov edi, edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x468a6e
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x468a50
xor edi, edi
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], edi
test edi, edi
je 0x4688d8
cmp dword [esp + 0x14], 0
jne 0x468ad9
mov eax, dword [ebp + 0xc]
call fcn.00408c40
cmp ebx, eax
jbe 0x468ad9
or dword [esi], 1
mov eax, ebx
sub eax, dword [ebp + 0xc]
cmp eax, 0x400
jbe 0x468aa3
mov eax, 0x400
mov edx, dword [ebp + 0xc]
lea ebx, [eax - 1]
push ebx
push edx
lea edi, [esi + 8]
push edi
call fcn.0047a8e0
mov eax, edi
add esp, 0xc
mov byte [edi + ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468ac0
mov ebx, dword [esp + 0x18]
sub eax, edx
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
jmp 0x468ad9
dec dword [esp + 0x14]
mov edi, dword [esp + 0x14]
inc edi
push 0x496878
lea eax, [ebx + 4]
mov dword [esp + 0x18], edi
call fcn.00464370
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x46880e
test edi, edi
jne 0x468b3f
mov eax, dword [ebp + 0xc]
push 0x3ff
push eax
lea edi, [esi + 8]
push edi
mov dword [esi], 1
call fcn.0047a8e0
mov eax, edi
add esp, 0xc
mov byte [edi + 0x3ff], 0
lea edx, [eax + 1]
jmp 0x468b30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468b30
sub eax, edx
mov dword [esi + reloc.USER32.dll_AdjustWindowRectEx], eax
mov eax, dword [esi]
cmp eax, dword [esp + 0x1c]
jne 0x468b4e
cmp byte [esp + 0x13], 0
je 0x468bbb
mov ecx, dword [esi + reloc.USER32.dll_AdjustWindowRectEx]
test ecx, ecx
je 0x468bbb
test eax, eax
je 0x468bbb
test al, 1
jne 0x468b6b
mov edx, dword [esi + reloc.USER32.dll_AdjustWindowRectEx]
cmp byte [edx], 0
je 0x468b84
push 0x7fff
lea edi, reloc.USER32.dll_AdjustWindowRectEx
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x468b84
mov byte [edi], al
test byte [esi], 4
je 0x468b9d
mov ecx, dword [esi + reloc.USER32.dll_AdjustWindowRectEx]
lea eax, reloc.USER32.dll_AdjustWindowRectEx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [esi], 8
je 0x468bbb
mov eax, dword [esi + reloc.USER32.dll_AdjustWindowRectEx]
push 0x101
lea edx, reloc.USER32.dll_AdjustWindowRectEx
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14