Function at 0x422c10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov eax, ecx
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], edx
jne 0x4231e8
mov edi, dword [ebp + 0xc]
cmp edi, 0x111
jne 0x422d3f
lea ecx, [eax - 0x130]
mov dword [ebp - 0x210], 1
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x21c]
movzx eax, ax
mov dword [ebp - 0x21c], eax
mov eax, dword [ecx]
push edx
push 0x1fb
call dword [eax + 0x28]
cmp dword [ebp - 0x210], 0
mov dword [ebx], 0
jne 0x42314c
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
lea esi, [eax - 0x130]
mov ecx, esi
mov dword [ebp - 0x218], ecx
cmp edi, 0x200
jne 0x422fe9
lea ecx, [eax - 0x130]
mov eax, dword [ecx + 0x184]
mov dword [ebp - 0x218], ecx
test eax, eax
je 0x422d1e
cmp dword [ecx + 0x17c], eax
je 0x422d1e
mov dword [ecx + 0x17c], eax
mov ecx, dword [ecx + 0x188]
test ecx, ecx
je 0x422cf7
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [ebp - 0x214]
mov ecx, dword [edx - 0xf0]
push dword [edx + 0x68]
mov dword [edx + 0x58], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov ecx, dword [ebp - 0x218]
mov eax, dword [ecx]
push ecx
push 0x1fd
call dword [eax + 0x28]
mov dword [ebx], 0
mov ecx, dword [ebp - 0x214]
mov eax, esi
mov esi, dword [ebp + 0x10]
jmp 0x4230ad
cmp edi, 0x102
jne 0x422de2
mov ecx, dword [ebp + 0x10]
lea esi, [eax - 0x130]
mov dword [ebp - 0x21c], ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x224]
mov eax, dword [esi]
push ecx
push 0x1f4
mov ecx, esi
mov dword [ebp - 0x220], 0
call dword [eax + 0x28]
mov eax, dword [ebp - 0x220]
push 0xfffffffffffffff0
push dword [esi + 0x134]
mov dword [ebp - 0x210], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 4
mov eax, dword [ebp - 0x210]
jne 0x422dbc
cmp dword [ebp - 0x21c], 0xd
mov ecx, 1
cmove eax, ecx
mov dword [ebp - 0x210], eax
mov dword [ebx], 0
test eax, eax
je 0x422c93
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 8
jne 0x422e9a
push dword [eax + 4]
lea esi, [eax - 0x130]
mov dword [esi + 0x154], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x422e24
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 0x422e71
cmp eax, dword [esi + 0x17c]
je 0x422e71
mov ecx, dword [esi + 0x188]
mov dword [esi + 0x17c], eax
test ecx, ecx
je 0x422e53
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x17c]
push eax
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
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x214]
mov dword [ebx], 0
lea esi, [ecx - 0x130]
mov eax, esi
mov esi, dword [ebp + 0x10]
jmp 0x4230ad
cmp edi, 7
jne 0x422f93
lea esi, [eax - 0x130]
lea eax, [ebp - 0x20c]
mov dword [esi + 0x154], 1
push 0x104
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 0x422efd
test dx, dx
je 0x422ef9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422efd
add eax, 4
add ecx, 4
test dx, dx
jne 0x422ed7
xor eax, eax
jmp 0x422f02
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422f1d
push 0x4e524c
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 0x422f6a
cmp dword [esi + 0x17c], eax
je 0x422f6a
mov ecx, dword [esi + 0x188]
mov dword [esi + 0x17c], eax
test ecx, ecx
je 0x422f4c
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x17c]
push eax
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
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x214]
mov dword [ebx], 0
lea esi, [ecx - 0x130]
mov eax, esi
mov esi, dword [ebp + 0x10]
jmp 0x4230ad
cmp edi, 0x20a
jne 0x422c9f
push dword [ebp + 0x10]
lea esi, [eax - 0x130]
mov dword [ebp - 0x210], 1
mov eax, dword [esi]
mov ecx, esi
push 0x1f8
call dword [eax + 0x28]
cmp dword [ebp - 0x210], 0
mov dword [ebx], 0
je 0x422d2f
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x2a1
jne 0x423015
mov ecx, dword [eax + 0x60]
mov dword [eax + 0x58], ecx
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x2a3
jne 0x42306f
lea edi, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push edi
lea ecx, [eax - 0x130]
mov eax, dword [ecx]
push edx
push dword [ebp + 0x10]
push 0x2a3
call dword [eax + 0xf0]
cmp dword [ebp - 0x210], 0
mov edi, dword [ebp + 0xc]
mov dword [ebx], eax
je 0x422d2f
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x2133
jne 0x422d2f
mov esi, dword [ebp + 0x10]
sub esp, 8
mov dword [ebp - 0x210], 1
push esi
push ecx
call fcn.004239f0
cmp dword [ebp - 0x210], 0
mov dword [ebx], eax
jne 0x42314c
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
cmp edi, 0x2138
jne 0x4230cf
sub esp, 8
mov dword [ebp - 0x210], 1
push esi
push ecx
mov ecx, eax
call fcn.004239f0
mov dword [ebx], eax
jmp 0x42313f
cmp edi, 0x100
jne 0x4230f6
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push ecx
push ecx
push esi
push ecx
mov ecx, eax
call fcn.00423b30
mov dword [ebx], eax
jmp 0x42313f
cmp edi, 0x101
je 0x42310e
cmp edi, 0x104
je 0x4230d7
cmp edi, 0x105
jne 0x423164
mov eax, dword [ecx - 0x130]
lea edx, [ebp - 0x218]
add ecx, 0xfffffed0
mov dword [ebp - 0x210], 1
push edx
push 0x1fa
mov dword [ebp - 0x218], esi
call dword [eax + 0x28]
mov dword [ebx], 0
cmp dword [ebp - 0x210], 0
je 0x4231e8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x14
je 0x422ff7
cmp edi, 0x2111
jne 0x4231e8
shr esi, 0x10
mov eax, 0x300
cmp ax, si
jne 0x4231b8
mov eax, dword [ecx - 0x130]
lea esi, [ecx - 0x130]
push 1
push 0
mov ecx, esi
mov dword [ebp - 0x210], 1
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 0x4231df
mov eax, 0x400
cmp ax, si
jne 0x4231e8
mov eax, dword [ecx - 0x130]
add ecx, 0xfffffed0
push 0
mov dword [ebp - 0x210], 1
push 0x1f9
call dword [eax + 0x28]
mov dword [ebx], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d3ed
mov esp, ebp
pop ebp
ret 0x18