Function at 0x422090
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4fe0c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
jne 0x42260b
mov eax, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x4220d4
movzx eax, word [ebp + 0x10]
lea edx, [ebp - 0x214]
push edx
push 0x1fb
jmp 0x4224a9
cmp eax, 0x102
jne 0x422169
mov eax, dword [ebp + 0x10]
lea esi, [ecx - 0x130]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], eax
mov eax, dword [esi]
push ecx
push 0x1f4
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [ebp - 0x218]
push 0xfffffffffffffff0
push dword [esi + 0x134]
mov dword [ebp - 0x210], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x422143
cmp dword [ebp - 0x214], 0xd
mov eax, 1
je 0x422149
mov eax, dword [ebp - 0x210]
mov dword [edi], 0
test eax, eax
jne 0x422522
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 8
jne 0x422210
push dword [ecx + 4]
lea esi, [ecx - 0x130]
mov dword [ebp - 0x210], 1
mov dword [esi + 0x154], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x4221b5
push dword [esi + 0x160]
mov dword [esi + 0x15c], 1
push dword [esi + 0x134]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x180]
test eax, eax
je 0x422201
cmp eax, dword [esi + 0x17c]
je 0x422201
mov dword [esi + 0x17c], eax
mov eax, dword [esi + 0x188]
test eax, eax
je 0x4221de
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x40]
push dword [esi + 0x194]
mov dword [esi + 0x188], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1f5
jmp 0x422602
cmp eax, 7
jne 0x4222f8
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 1
lea esi, [ecx - 0x130]
mov dword [esi + 0x154], 1
push eax
push dword [esi + 0x134]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x160]
lea ecx, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42227d
test dx, dx
je 0x422279
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42227d
add eax, 4
add ecx, 4
test dx, dx
jne 0x422257
xor eax, eax
jmp 0x422282
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42229d
push 0x4e3458
push dword [esi + 0x134]
mov dword [esi + 0x15c], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x184]
test eax, eax
je 0x4222e9
cmp dword [esi + 0x17c], eax
je 0x4222e9
mov dword [esi + 0x17c], eax
mov eax, dword [esi + 0x188]
test eax, eax
je 0x4222c6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x40]
push dword [esi + 0x198]
mov dword [esi + 0x188], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1fc
jmp 0x422602
cmp eax, 0x20a
jne 0x42230c
push dword [ebp + 0x10]
push 0x1f8
jmp 0x4224af
cmp eax, 0x200
jne 0x42237b
mov eax, dword [ecx + 0x54]
lea esi, [ecx - 0x130]
mov dword [ebp - 0x210], 1
test eax, eax
je 0x42236c
cmp dword [esi + 0x17c], eax
je 0x42236c
mov dword [esi + 0x17c], eax
mov eax, dword [esi + 0x188]
test eax, eax
je 0x422349
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x40]
push dword [esi + 0x198]
mov dword [esi + 0x188], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1fd
jmp 0x422602
cmp eax, 0x2a1
jne 0x4223a5
mov eax, dword [ecx + 0x60]
mov dword [ecx + 0x58], eax
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x4223fb
mov eax, dword [ecx - 0x130]
lea esi, [ebp - 0x210]
push esi
add ecx, 0xfffffed0
mov dword [ebp - 0x210], 1
push edx
push dword [ebp + 0x10]
push 0x2a3
call dword [eax + 0xf0]
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422522
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2133
je 0x422409
cmp eax, 0x2138
jne 0x422448
sub esp, 8
mov dword [ebp - 0x210], 1
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffed0
call fcn.00422e10
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422522
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x422493
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffed0
call fcn.00422f40
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422522
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x101
jne 0x4224eb
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x214]
push edx
push 0x1fa
mov dword [ebp - 0x214], eax
mov eax, dword [ecx - 0x130]
add ecx, 0xfffffed0
mov dword [ebp - 0x210], 1
call dword [eax + 0x28]
cmp dword [ebp - 0x210], 0
mov dword [edi], 0
jne 0x422522
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x422539
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffed0
call fcn.00422f40
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
je 0x42260b
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x105
jne 0x42258d
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x214]
add ecx, 0xfffffed0
mov dword [ebp - 0x214], eax
push edx
push 0x1fa
mov dword [ebp - 0x210], 1
mov eax, dword [ecx]
call dword [eax + 0x28]
xor eax, eax
mov dword [edi], 0
cmp dword [ebp - 0x210], eax
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
je 0x422388
cmp eax, 0x2111
jne 0x42260b
mov eax, dword [ebp + 0x10]
mov esi, 0x300
shr eax, 0x10
mov edx, eax
cmp si, ax
jne 0x4225db
mov eax, dword [ecx - 0x130]
lea esi, [ecx - 0x130]
push 1
push 0
mov ecx, esi
call dword [eax + 0x13c]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x1f6
jmp 0x422602
mov eax, 0x400
cmp ax, dx
jne 0x42260b
mov eax, dword [ecx - 0x130]
add ecx, 0xfffffed0
push 0
mov dword [ebp - 0x210], 1
push 0x1f9
call dword [eax + 0x28]
mov dword [edi], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049cdfb
mov esp, ebp
pop ebp
ret 0x18