Function at 0x4215f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [0x516360], 0
jne 0x42160b
cmp dword [0x5222c0], 0
je 0x421612
xor eax, eax
jmp 0x42192f
push 0xffffffffffffffe0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetClassWord]
mov word [ebp - 0x114], ax
movzx ecx, word [ebp - 0x114]
movzx edx, word [0x522934]
cmp ecx, edx
je 0x421698
movzx eax, word [ebp - 0x114]
movzx ecx, word [0x52208c]
cmp eax, ecx
je 0x421698
movzx edx, word [ebp - 0x114]
movzx eax, word [0x522198]
cmp edx, eax
je 0x421698
movzx ecx, word [ebp - 0x114]
movzx edx, word [0x522180]
cmp ecx, edx
je 0x421698
movzx eax, word [ebp - 0x114]
movzx ecx, word [0x5222ba]
cmp eax, ecx
je 0x421698
movzx edx, word [ebp - 0x114]
movzx eax, word [0x522086]
cmp edx, eax
je 0x421698
xor eax, eax
jmp 0x42192f
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x514f20]
je 0x4216ae
mov edx, dword [ebp + 0xc]
cmp edx, dword [0x514ff0]
jne 0x4216b5
xor eax, eax
jmp 0x42192f
push 0xffffffffffffffeb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x118], eax
mov dword [0x521df0], 0
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
je 0x42175e
mov dword [0x5222a4], 0
push 0xffffffffffffffe0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetClassWord]
mov word [ebp - 4], ax
mov eax, dword [ebp - 0x118]
cmp dword [eax + 0x44], 0
jne 0x421746
movzx ecx, word [ebp - 4]
movzx edx, word [0x522190]
cmp ecx, edx
jne 0x421746
push 0xfffffffffffffff0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xf
mov dword [ebp - 8], eax
je 0x42172c
cmp dword [ebp - 8], 1
jne 0x421744
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 1
je 0x421744
mov edx, dword [ebp + 8]
mov dword [0x5222a4], edx
jmp 0x42175e
movzx eax, word [ebp - 4]
movzx ecx, word [0x522028]
cmp eax, ecx
jne 0x42175e
mov edx, dword [ebp + 8]
mov dword [0x521df0], edx
mov dword [ebp - 0x10c], 0
push 0
push 0
push 0xb8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4218a2
push 0x100
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42184f
push 0xff
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.00437020
add esp, 0x10
cmp dword [ebp - 0x110], 1
jne 0x421835
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x118]
fld qword [eax + 8]
fcomp qword [ecx + 0x10]
fnstsw ax
test ah, 0x41
jp 0x42181d
mov edx, dword [ebp - 0x118]
fld qword [ebp - 0x120]
fcomp qword [edx + 8]
fnstsw ax
test ah, 5
jnp 0x421811
mov eax, dword [ebp - 0x118]
fld qword [ebp - 0x120]
fcomp qword [eax + 0x10]
fnstsw ax
test ah, 0x41
jne 0x42181d
mov dword [ebp - 0x124], 1
jmp 0x421827
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x10c], ecx
jmp 0x42184d
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
jne 0x421843
cmp dword [ebp + 0x10], 0
je 0x42184d
mov dword [ebp - 0x10c], 1
jmp 0x4218a2
mov eax, dword [ebp - 0x118]
cmp dword [eax + 0x60], 0
jne 0x4218a2
mov ecx, dword [ebp - 0x118]
cmp dword [ecx + 0x2c], 0
je 0x42188c
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x118]
fld qword [edx + 8]
fcomp qword [eax + 0x10]
fnstsw ax
test ah, 0x41
jp 0x42188c
mov dword [ebp - 0x128], 1
jmp 0x421896
mov dword [ebp - 0x128], 0
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
je 0x421903
cmp dword [0x5222a4], 0
jne 0x4218f7
mov dword [0x516360], 1
mov edx, dword [ebp - 0x118]
mov eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004207a0
add esp, 0xc
push 0
push 1
push 0xb9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x516360], 0
jmp 0x421901
mov dword [ebp - 0x10c], 0
jmp 0x421929
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
je 0x421929
mov dword [0x5222a4], 0
mov dword [0x521df0], 0
mov dword [0x522884], 1
mov eax, dword [ebp - 0x10c]
mov esp, ebp
pop ebp
ret