Function at 0x422500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5060c0]
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 0x422a72
mov eax, dword [ebp + 0xc]
lea esi, [ecx - 0x168]
cmp eax, 0x111
jne 0x42254a
movzx eax, word [ebp + 0x10]
lea ecx, [ebp - 0x214]
push ecx
push 0x1fb
jmp 0x42292e
cmp eax, 0x102
jne 0x422680
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 0x42261b
push ebx
cmp eax, 0x30
jb 0x42258c
cmp eax, 0x39
jbe 0x42259f
cmp eax, 0xd
je 0x42259f
cmp eax, 0x1b
je 0x42259f
cmp eax, 8
je 0x42259f
xor ebx, ebx
jmp 0x4225a4
mov ebx, 1
cmp byte [esi + 0x1a1], 0
je 0x422611
cmp eax, 0x2e
jne 0x422611
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00422f40
mov eax, dword [ebp - 0x218]
cmp dword [eax - 0xc], 0
jg 0x4225d1
or ecx, 0xffffffff
jmp 0x4225f1
push 0x2e
push eax
call fcn.004a47df
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x218]
test ecx, ecx
jne 0x4225ed
or ecx, 0xffffffff
jmp 0x4225f1
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 0x422611
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 0x422660
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 0x42265a
cmp dword [ebp - 0x214], 0xd
mov eax, 1
je 0x422660
mov eax, dword [ebp - 0x210]
mov dword [edi], 0
test eax, eax
jne 0x42299b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 8
jne 0x4226a7
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
sub esp, 0xc
mov ecx, esi
call fcn.004232b0
mov dword [edi], eax
jmp 0x42294b
cmp eax, 7
jne 0x422794
mov ecx, dword [esi + 0x1dc]
mov dword [ebp - 0x210], 1
test ecx, ecx
je 0x4226c9
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 0x42271d
test dx, dx
je 0x422719
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42271d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4226f7
xor eax, eax
jmp 0x422722
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42273d
push 0x4e9538
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 0x422789
cmp dword [esi + 0x1b8], eax
je 0x422789
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x422766
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 0x422a65
cmp eax, 0x20a
jne 0x4227a8
push dword [ebp + 0x10]
push 0x1f8
jmp 0x422934
cmp eax, 0x200
jne 0x422810
mov eax, dword [esi + 0x1c0]
mov dword [ebp - 0x210], 1
test eax, eax
je 0x422805
cmp dword [esi + 0x1b8], eax
je 0x422805
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x4227e2
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 0x422a65
cmp eax, 0x2a1
jne 0x42283a
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.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x422888
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 0x42299b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2133
je 0x422896
cmp eax, 0x2138
jne 0x4228d1
sub esp, 8
mov dword [ebp - 0x210], 1
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.004234f0
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x42299b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x422918
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00423620
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x42299b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x101
jne 0x422968
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 0x42299b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x4229b2
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00423620
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
je 0x422a72
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x105
jne 0x422a02
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.004a2700
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
je 0x42281d
cmp eax, 0x2111
jne 0x422a72
mov eax, dword [ebp + 0x10]
mov edx, 0x300
shr eax, 0x10
mov ecx, eax
cmp dx, ax
jne 0x422a4b
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 0x422a65
mov eax, 0x400
cmp ax, cx
jne 0x422a72
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.004a2700
mov esp, ebp
pop ebp
ret 0x18