Function at 0x4227f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4f80c0]
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 0x422d62
mov eax, dword [ebp + 0xc]
lea esi, [ecx - 0x168]
cmp eax, 0x111
jne 0x42283a
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x214]
push ecx
push 0x1fb
jmp 0x422c1e
cmp eax, 0x102
jne 0x422970
cmp byte [esi + 0x1a0], 0
lea ecx, [ebp - 0x214]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], ecx
je 0x42290b
push ebx
cmp eax, 0x30
jb 0x42287c
cmp eax, 0x39
jbe 0x42288f
cmp eax, 0xd
je 0x42288f
cmp eax, 0x1b
je 0x42288f
cmp eax, 8
je 0x42288f
xor ebx, ebx
jmp 0x422894
mov ebx, 1
cmp byte [esi + 0x1a1], 0
je 0x422901
cmp eax, 0x2e
jne 0x422901
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00423230
mov eax, dword [ebp - 0x218]
cmp dword [eax - 0xc], 0
jg 0x4228c1
or ecx, 0xffffffff
jmp 0x4228e1
push 0x2e
push eax
call fcn.0049ae3f
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x218]
test ecx, ecx
jne 0x4228dd
or ecx, 0xffffffff
jmp 0x4228e1
sub ecx, eax
sar ecx, 1
xor ebx, ebx
lea edx, [eax - 0x10]
cmp ecx, 0xffffffff
sete bl
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422901
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test ebx, ebx
pop ebx
sete al
jmp 0x422950
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
push 0x1f4
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [ebp - 0x21c]
push 0xfffffffffffffff0
push dword [esi + 0x16c]
mov dword [ebp - 0x210], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
jne 0x42294a
cmp dword [ebp - 0x214], 0xd
mov eax, 1
je 0x422950
mov eax, dword [ebp - 0x210]
mov dword [edi], 0
test eax, eax
jne 0x422c8b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 8
jne 0x422997
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
sub esp, 0xc
mov ecx, esi
call fcn.004235a0
mov dword [edi], eax
jmp 0x422c3b
cmp eax, 7
jne 0x422a84
mov ecx, dword [esi + 0x1dc]
mov dword [ebp - 0x210], 1
test ecx, ecx
je 0x4229b9
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x20c]
mov dword [esi + 0x18c], 1
push eax
push dword [esi + 0x16c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x198]
lea ecx, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422a0d
test dx, dx
je 0x422a09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422a0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4229e7
xor eax, eax
jmp 0x422a12
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422a2d
push 0x4dd498
push dword [esi + 0x16c]
mov dword [esi + 0x194], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x1c0]
test eax, eax
je 0x422a79
cmp dword [esi + 0x1b8], eax
je 0x422a79
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x422a56
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x1b8]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x40]
push dword [esi + 0x1d4]
mov dword [esi + 0x1c4], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
push esi
push 0x1fc
jmp 0x422d55
cmp eax, 0x20a
jne 0x422a98
push dword [ebp + 0x10]
push 0x1f8
jmp 0x422c24
cmp eax, 0x200
jne 0x422b00
mov eax, dword [esi + 0x1c0]
mov dword [ebp - 0x210], 1
test eax, eax
je 0x422af5
cmp dword [esi + 0x1b8], eax
je 0x422af5
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x422ad2
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x1b8]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esi + 0x40]
push dword [esi + 0x1d4]
mov dword [esi + 0x1c4], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
push esi
push 0x1fd
jmp 0x422d55
cmp eax, 0x2a1
jne 0x422b2a
mov eax, dword [ecx + 0x64]
mov dword [ecx + 0x5c], eax
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x422b78
mov eax, dword [esi]
lea ecx, [ebp - 0x210]
push ecx
push edx
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x210], 1
push 0x2a3
call dword [eax + 0xf0]
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422c8b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2133
je 0x422b86
cmp eax, 0x2138
jne 0x422bc1
sub esp, 8
mov dword [ebp - 0x210], 1
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.004237e0
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422c8b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x422c08
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00423910
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422c8b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x101
jne 0x422c58
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x214]
push ecx
push 0x1fa
mov dword [ebp - 0x214], eax
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x210], 1
call dword [eax + 0x28]
mov dword [edi], 0
cmp dword [ebp - 0x210], 0
jne 0x422c8b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x422ca2
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00423910
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
je 0x422d62
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x105
jne 0x422cf2
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], eax
mov eax, dword [esi]
push ecx
push 0x1fa
mov ecx, esi
mov dword [ebp - 0x210], 1
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.00498d60
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
je 0x422b0d
cmp eax, 0x2111
jne 0x422d62
mov eax, dword [ebp + 0x10]
mov edx, 0x300
shr eax, 0x10
mov ecx, eax
cmp dx, ax
jne 0x422d3b
mov eax, dword [esi]
mov ecx, esi
push 1
push 0
mov dword [ebp - 0x210], 1
call dword [eax + 0x13c]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
push 0x1f6
jmp 0x422d55
mov eax, 0x400
cmp ax, cx
jne 0x422d62
push esi
mov dword [ebp - 0x210], 1
push 0x1f9
mov eax, dword [esi]
mov ecx, esi
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.00498d60
mov esp, ebp
pop ebp
ret 0x18