Function at 0x422620
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5010c0]
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 0x422c64
mov eax, dword [ebp + 0xc]
cmp eax, 0x111
jne 0x422664
movzx eax, word [ebp + 0x10]
lea edx, [ebp - 0x214]
push edx
push 0x1fb
jmp 0x422b02
cmp eax, 0x102
jne 0x42279d
cmp byte [ecx + 0x38], 0
lea esi, [ecx - 0x168]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], ecx
je 0x422738
push ebx
cmp eax, 0x30
jb 0x4226a9
cmp eax, 0x39
jbe 0x4226bc
cmp eax, 0xd
je 0x4226bc
cmp eax, 0x1b
je 0x4226bc
cmp eax, 8
je 0x4226bc
xor ebx, ebx
jmp 0x4226c1
mov ebx, 1
cmp byte [esi + 0x1a1], 0
je 0x42272e
cmp eax, 0x2e
jne 0x42272e
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00423110
mov eax, dword [ebp - 0x218]
cmp dword [eax - 0xc], 0
jg 0x4226ee
or ecx, 0xffffffff
jmp 0x42270e
push 0x2e
push eax
call fcn.004a1a9f
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x218]
test ecx, ecx
jne 0x42270a
or ecx, 0xffffffff
jmp 0x42270e
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 0x42272e
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 0x42277d
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 0x422777
cmp dword [ebp - 0x214], 0xd
mov eax, 1
je 0x42277d
mov eax, dword [ebp - 0x210]
mov dword [edi], 0
test eax, eax
jne 0x422b7b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 8
jne 0x422856
lea esi, [ecx - 0x168]
mov dword [ebp - 0x210], 1
mov ecx, dword [esi + 0x1dc]
test ecx, ecx
je 0x4227c5
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x16c]
mov dword [esi + 0x18c], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x4227fb
push dword [esi + 0x198]
mov dword [esi + 0x194], 1
push dword [esi + 0x16c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x1bc]
test eax, eax
je 0x422847
cmp eax, dword [esi + 0x1b8]
je 0x422847
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x422824
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 + 0x1d0]
mov dword [esi + 0x1c4], eax
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1f5
jmp 0x422c5b
cmp eax, 7
jne 0x422951
lea esi, [ecx - 0x168]
mov dword [ebp - 0x210], 1
mov ecx, dword [esi + 0x1dc]
test ecx, ecx
je 0x42287e
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]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4228d6
test dx, dx
je 0x4228d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4228d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4228b0
xor eax, eax
jmp 0x4228db
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4228f6
push 0x4e5478
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 0x422942
cmp dword [esi + 0x1b8], eax
je 0x422942
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x42291f
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]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1fc
jmp 0x422c5b
cmp eax, 0x20a
jne 0x422965
push dword [ebp + 0x10]
push 0x1f8
jmp 0x422b08
cmp eax, 0x200
jne 0x4229d4
mov eax, dword [ecx + 0x58]
lea esi, [ecx - 0x168]
mov dword [ebp - 0x210], 1
test eax, eax
je 0x4229c5
cmp dword [esi + 0x1b8], eax
je 0x4229c5
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x4229a2
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]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x1fd
jmp 0x422c5b
cmp eax, 0x2a1
jne 0x4229fe
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.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2a3
jne 0x422a54
mov eax, dword [ecx - 0x168]
lea esi, [ebp - 0x210]
push esi
add ecx, 0xfffffe98
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 0x422b7b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x2133
je 0x422a62
cmp eax, 0x2138
jne 0x422aa1
sub esp, 8
mov dword [ebp - 0x210], 1
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffe98
call fcn.00423480
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422b7b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x100
jne 0x422aec
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffe98
call fcn.004235b0
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
jne 0x422b7b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x101
jne 0x422b44
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x214]
push edx
push 0x1fa
mov dword [ebp - 0x214], eax
mov eax, dword [ecx - 0x168]
add ecx, 0xfffffe98
mov dword [ebp - 0x210], 1
call dword [eax + 0x28]
cmp dword [ebp - 0x210], 0
mov dword [edi], 0
jne 0x422b7b
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x422b92
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push ecx
push dword [ebp + 0x10]
push ecx
add ecx, 0xfffffe98
call fcn.004235b0
cmp dword [ebp - 0x210], 0
mov dword [edi], eax
je 0x422c64
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x105
jne 0x422be6
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x214]
add ecx, 0xfffffe98
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.0049fb4b
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x14
je 0x4229e1
cmp eax, 0x2111
jne 0x422c64
mov eax, dword [ebp + 0x10]
mov esi, 0x300
shr eax, 0x10
mov edx, eax
cmp si, ax
jne 0x422c34
mov eax, dword [ecx - 0x168]
lea esi, [ecx - 0x168]
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 0x422c5b
mov eax, 0x400
cmp ax, dx
jne 0x422c64
mov eax, dword [ecx - 0x168]
add ecx, 0xfffffe98
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.0049fb4b
mov esp, ebp
pop ebp
ret 0x18